refactor: changed short opts for secret store

This commit is contained in:
David Allen 2025-03-24 14:29:16 -06:00
parent 1ba78539fb
commit d1042d77aa
Signed by: towk
GPG key ID: 0430CDBE22619155

View file

@ -252,8 +252,8 @@ var secretsRemoveCmd = &cobra.Command{
} }
func init() { func init() {
secretsCmd.Flags().StringVarP(&secretsFile, "output-file", "o", "nodes.json", "set the secrets file with BMC credentials") secretsCmd.Flags().StringVarP(&secretsFile, "file", "f", "nodes.json", "set the secrets file with BMC credentials")
secretsStoreCmd.Flags().StringVarP(&secretsStoreFormat, "format", "f", "basic", "set the input format for the secrets file (basic|json|base64)") secretsStoreCmd.Flags().StringVarP(&secretsStoreFormat, "format", "F", "basic", "set the input format for the secrets file (basic|json|base64)")
secretsStoreCmd.Flags().StringVarP(&secretsStoreInputFile, "input-file", "i", "", "set the file to read as input") secretsStoreCmd.Flags().StringVarP(&secretsStoreInputFile, "input-file", "i", "", "set the file to read as input")
secretsCmd.AddCommand(secretsGenerateKeyCmd) secretsCmd.AddCommand(secretsGenerateKeyCmd)