diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-09-28 10:46:49 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-09-28 12:19:22 +0300 |
commit | e35a93336a2c0ce081cd05f64986c6f6cdc59077 (patch) | |
tree | e36c7e99b24f7826980d5eec590551c68713d734 /ui/src/execute.rs | |
parent | 963fdd157503966d4ec16a9b175be6b2caa9fba6 (diff) |
Add GPG signing and sig verifying
Diffstat (limited to 'ui/src/execute.rs')
-rw-r--r-- | ui/src/execute.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ui/src/execute.rs b/ui/src/execute.rs index 18e3a47e..6393c05f 100644 --- a/ui/src/execute.rs +++ b/ui/src/execute.rs @@ -214,6 +214,17 @@ define_commands!([ ); ) }, + { tags: ["toggle sign "], + desc: "switch between sign/unsign for this draft", + parser:( + named!( toggle_sign<Action>, + do_parse!( + ws!(tag!("toggle sign")) + >> (Compose(ToggleSign)) + ) + ); + ) + }, { tags: ["create-folder "], desc: "create-folder ACCOUNT FOLDER_PATH", parser:( @@ -350,7 +361,7 @@ named!( named!( compose_action<Action>, - alt_complete!(add_attachment | remove_attachment) + alt_complete!(add_attachment | remove_attachment | toggle_sign) ); named!(pub parse_command<Action>, |