diff options
Diffstat (limited to 'sq/src/commands/autocrypt.rs')
-rw-r--r-- | sq/src/commands/autocrypt.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sq/src/commands/autocrypt.rs b/sq/src/commands/autocrypt.rs index 748e71ea..129f438e 100644 --- a/sq/src/commands/autocrypt.rs +++ b/sq/src/commands/autocrypt.rs @@ -14,12 +14,11 @@ use crate::{ sq_cli, }; -use sq_cli::autocrypt::{AutocryptSubcommands, AutocryptCommand}; - -pub fn dispatch(config: Config, c: &AutocryptCommand) -> Result<()> { +pub fn dispatch(config: Config, c: &sq_cli::autocrypt::Command) -> Result<()> { + use sq_cli::autocrypt::Subcommands::*; match &c.subcommand { - AutocryptSubcommands::Decode(command) => { + Decode(command) => { let input = open_or_stdin(command.io.input.as_deref())?; let mut output = config.create_or_stdout_pgp( command.io.output.as_deref(), @@ -34,7 +33,7 @@ pub fn dispatch(config: Config, c: &AutocryptCommand) -> Result<()> { } output.finalize()?; } - AutocryptSubcommands::EncodeSender(command) => { + EncodeSender(command) => { let input = open_or_stdin(command.io.input.as_deref())?; let mut output = config.create_or_stdout_safe(command.io.output.as_deref())?; |