chore(cmd shorts): simplify
This commit is contained in:
parent
92c30d4cad
commit
ef597c5f22
2 changed files with 4 additions and 4 deletions
|
|
@ -32,14 +32,14 @@ import (
|
||||||
|
|
||||||
var cpCmd = &cobra.Command{
|
var cpCmd = &cobra.Command{
|
||||||
Use: "cp FROM[@DB] TO[@DB]",
|
Use: "cp FROM[@DB] TO[@DB]",
|
||||||
Short: "Make a copy of a key.",
|
Short: "Make a copy of a key",
|
||||||
Args: cobra.ExactArgs(2),
|
Args: cobra.ExactArgs(2),
|
||||||
RunE: cp,
|
RunE: cp,
|
||||||
}
|
}
|
||||||
|
|
||||||
var mvCmd = &cobra.Command{
|
var mvCmd = &cobra.Command{
|
||||||
Use: "mv FROM[@DB] TO[@DB]",
|
Use: "mv FROM[@DB] TO[@DB]",
|
||||||
Short: "Move a key between (or within) databases.",
|
Short: "Move a key",
|
||||||
Args: cobra.ExactArgs(2),
|
Args: cobra.ExactArgs(2),
|
||||||
RunE: mv,
|
RunE: mv,
|
||||||
SilenceUsage: true,
|
SilenceUsage: true,
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,8 @@ import (
|
||||||
// setCmd represents the set command
|
// setCmd represents the set command
|
||||||
var setCmd = &cobra.Command{
|
var setCmd = &cobra.Command{
|
||||||
Use: "set KEY[@DB] [VALUE]",
|
Use: "set KEY[@DB] [VALUE]",
|
||||||
Short: "Set a value for a key by passing VALUE or Stdin. Optionally specify a db.",
|
Short: "Set a key to a given value",
|
||||||
Long: `Set a value for a key by passing VALUE or Stdin. Optionally specify a db.
|
Long: `Set a key to a given value or stdin. Optionally specify a db.
|
||||||
|
|
||||||
PDA supports parsing Go templates. Actions are delimited with {{ }}.
|
PDA supports parsing Go templates. Actions are delimited with {{ }}.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue