diff --git a/cmd/get.go b/cmd/get.go index ad480fc..6013b0d 100644 --- a/cmd/get.go +++ b/cmd/get.go @@ -30,10 +30,11 @@ import ( // getCmd represents the get command var getCmd = &cobra.Command{ - Use: "get KEY[@DB]", - Short: "Get a value for a key. Optionally specify a db.", - Args: cobra.ExactArgs(1), - RunE: get, + Use: "get KEY[@DB]", + Short: "Get a value for a key. Optionally specify a db.", + Aliases: []string{"g"}, + Args: cobra.ExactArgs(1), + RunE: get, } func get(cmd *cobra.Command, args []string) error { diff --git a/cmd/set.go b/cmd/set.go index 0fa1f6c..29989cf 100644 --- a/cmd/set.go +++ b/cmd/set.go @@ -30,10 +30,11 @@ import ( // setCmd represents the set command var setCmd = &cobra.Command{ - Use: "set KEY[@DB] [VALUE]", - Short: "Set a value for a key by passing VALUE or from Stdin. Optionally specify a db.", - Args: cobra.RangeArgs(1, 2), - RunE: set, + Use: "set KEY[@DB] [VALUE]", + Short: "Set a value for a key by passing VALUE or from Stdin. Optionally specify a db.", + Aliases: []string{"s"}, + Args: cobra.RangeArgs(1, 2), + RunE: set, } func set(cmd *cobra.Command, args []string) error {