Mercurial > projects > sievemgr
comparison cmd/sievemgr/edit.go @ 22:fc5e6970a0d5 default tip
Add support for specifying an authorization identity on the command line
author | Guido Berhoerster <guido+sievemgr@berhoerster.name> |
---|---|
date | Wed, 17 Feb 2021 07:50:55 +0100 |
parents | 29769b9e2f09 |
children |
comparison
equal
deleted
inserted
replaced
21:ad5f548e3b10 | 22:fc5e6970a0d5 |
---|---|
36 "golang.org/x/term" | 36 "golang.org/x/term" |
37 ) | 37 ) |
38 | 38 |
39 func init() { | 39 func init() { |
40 cmdEdit.Flag.StringVar(&acctName, "a", "", "Select the account") | 40 cmdEdit.Flag.StringVar(&acctName, "a", "", "Select the account") |
41 cmdEdit.Flag.StringVar(&authzID, "A", "", "Specify the authorization identity") | |
41 } | 42 } |
42 | 43 |
43 var cmdEdit = &command{ | 44 var cmdEdit = &command{ |
44 UsageLine: "edit [options] name", | 45 UsageLine: "edit [options] name", |
45 Run: runEdit, | 46 Run: runEdit, |