refactor: changed required number of args for secrets list

This commit is contained in:
David Allen 2025-03-20 08:59:15 -06:00 committed by David Allen
parent 0569329529
commit 07e3d0eb7a
Signed by: towk
GPG key ID: 0430CDBE22619155

View file

@ -175,7 +175,7 @@ var secretsRetrieveCmd = &cobra.Command{
var secretsListCmd = &cobra.Command{ var secretsListCmd = &cobra.Command{
Use: "list", Use: "list",
Args: cobra.MinimumNArgs(1), Args: cobra.ExactArgs(0),
Short: "Lists all the secret IDs and their values.", Short: "Lists all the secret IDs and their values.",
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
store, err := secrets.OpenStore(secretsFile) store, err := secrets.OpenStore(secretsFile)