clap-utils: Reduce SignerSource's visibility
This commit is contained in:
parent
09dcc9ea04
commit
c5ab3ba6f1
|
@ -133,7 +133,7 @@ impl DefaultSigner {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub enum SignerSource {
|
pub(crate) enum SignerSource {
|
||||||
Ask,
|
Ask,
|
||||||
Filepath(String),
|
Filepath(String),
|
||||||
Usb(String),
|
Usb(String),
|
||||||
|
@ -141,7 +141,7 @@ pub enum SignerSource {
|
||||||
Pubkey(Pubkey),
|
Pubkey(Pubkey),
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn parse_signer_source<S: AsRef<str>>(source: S) -> SignerSource {
|
pub(crate) fn parse_signer_source<S: AsRef<str>>(source: S) -> SignerSource {
|
||||||
if path == "-" {
|
if path == "-" {
|
||||||
SignerSource::Stdin
|
SignerSource::Stdin
|
||||||
} else if path == ASK_KEYWORD {
|
} else if path == ASK_KEYWORD {
|
||||||
|
|
Loading…
Reference in New Issue