feat(completions): wire up store completions and --store flag completions

This commit is contained in:
Lewis Wynne 2026-03-16 16:31:37 +00:00
parent cb135b7caa
commit 84b1c67c72
6 changed files with 35 additions and 25 deletions

View file

@ -33,12 +33,13 @@ import (
// mvStoreCmd represents the move-store command
var mvStoreCmd = &cobra.Command{
Use: "move-store FROM TO",
Short: "Rename a store",
Aliases: []string{"mvs"},
Args: cobra.ExactArgs(2),
RunE: mvStore,
SilenceUsage: true,
Use: "move-store FROM TO",
Short: "Rename a store",
Aliases: []string{"mvs"},
Args: cobra.ExactArgs(2),
ValidArgsFunction: completeStores,
RunE: mvStore,
SilenceUsage: true,
}
func mvStore(cmd *cobra.Command, args []string) error {