* Refactor SignerSource to expose DerivationPath to other kinds of signers (#16933)
* One use statement
* Add stdin uri scheme
* Convert parse_signer_source to return Result
* A-Z deps
* Convert Usb data to Locator
* Pull DerivationPath out of Locator
* Wrap SignerSource to share derivation_path
* Review comments
* Check Filepath existence, readability in parse_signer_source
(cherry picked from commit d6f30b7537)
# Conflicts:
# sdk/Cargo.toml
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
16 lines
400 B
Rust
16 lines
400 B
Rust
use {crate::ArgConstant, clap::Arg};
|
|
|
|
pub const MEMO_ARG: ArgConstant<'static> = ArgConstant {
|
|
name: "memo",
|
|
long: "--with-memo",
|
|
help: "Specify a memo string to include in the transaction.",
|
|
};
|
|
|
|
pub fn memo_arg<'a, 'b>() -> Arg<'a, 'b> {
|
|
Arg::with_name(MEMO_ARG.name)
|
|
.long(MEMO_ARG.long)
|
|
.takes_value(true)
|
|
.value_name("MEMO")
|
|
.help(MEMO_ARG.help)
|
|
}
|