feat: command rename finalising
This commit is contained in:
parent
8ea865b2ce
commit
a4d2e919dc
15 changed files with 22 additions and 33 deletions
|
|
@ -35,7 +35,7 @@ import (
|
|||
var delStoreCmd = &cobra.Command{
|
||||
Use: "remove-store STORE",
|
||||
Short: "Delete a store",
|
||||
Aliases: []string{"rm-store", "rms"},
|
||||
Aliases: []string{"rms"},
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: delStore,
|
||||
SilenceUsage: true,
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import (
|
|||
var exportCmd = &cobra.Command{
|
||||
Use: "export [STORE]",
|
||||
Short: "Export store as NDJSON (alias for list --format ndjson)",
|
||||
Aliases: []string{"dump"},
|
||||
Aliases: []string{},
|
||||
Args: cobra.MaximumNArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
listFormat = "ndjson"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import (
|
|||
|
||||
var identityCmd = &cobra.Command{
|
||||
Use: "identity",
|
||||
Aliases: []string{"id"},
|
||||
Short: "Show or create the age encryption identity",
|
||||
Args: cobra.NoArgs,
|
||||
RunE: identityRun,
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import (
|
|||
var listStoresCmd = &cobra.Command{
|
||||
Use: "list-stores",
|
||||
Short: "List all stores",
|
||||
Aliases: []string{"ls-stores", "lss"},
|
||||
Aliases: []string{"lss"},
|
||||
Args: cobra.NoArgs,
|
||||
RunE: listStores,
|
||||
SilenceUsage: true,
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ import (
|
|||
var restoreCmd = &cobra.Command{
|
||||
Use: "import [STORE]",
|
||||
Short: "Restore key/value pairs from an NDJSON dump",
|
||||
Aliases: []string{"restore"},
|
||||
Aliases: []string{},
|
||||
Args: cobra.MaximumNArgs(1),
|
||||
RunE: restore,
|
||||
SilenceUsage: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue