revert(Set/Get): reduces --help text; long explanation will go into actual documentation
This commit is contained in:
parent
25b4363c5f
commit
13243e97a3
2 changed files with 3 additions and 14 deletions
|
|
@ -41,14 +41,12 @@ var getCmd = &cobra.Command{
|
|||
Short: "Get a value for a key. Optionally specify a db.",
|
||||
Long: `Get a value for a key. Optionally specify a db.
|
||||
|
||||
[[ .TEMPLATES ]] can be filled by passing TEMPLATE=VALUE as an
|
||||
{{ .TEMPLATES }} can be filled by passing TEMPLATE=VALUE as an
|
||||
additional argument after the initial KEY being fetched.
|
||||
|
||||
For example:
|
||||
pda set greeting 'Hello, {{ .NAME }}!'
|
||||
pda get greeting NAME=World
|
||||
|
||||
Further reading: Go's text/template documentation.`,
|
||||
pda get greeting NAME=World`,
|
||||
Aliases: []string{"g"},
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
RunE: get,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue