feat(flags): negative flags added for defaults (--no-keys, --no-values), and removes --include- prefix from positive flags

This commit is contained in:
Lewis Wynne 2025-11-07 12:25:03 +00:00
parent 434855e958
commit 4ace97bddc
3 changed files with 46 additions and 29 deletions

View file

@ -60,7 +60,7 @@ func get(cmd *cobra.Command, args []string) error {
return err
}
includeSecret, err := cmd.Flags().GetBool("include-secret")
includeSecret, err := cmd.Flags().GetBool("secret")
if err != nil {
return err
}
@ -79,6 +79,6 @@ func get(cmd *cobra.Command, args []string) error {
func init() {
getCmd.Flags().BoolP("include-binary", "b", false, "include binary data in text output")
getCmd.Flags().Bool("include-secret", false, "display values marked as secret")
getCmd.Flags().Bool("secret", false, "display values marked as secret")
rootCmd.AddCommand(getCmd)
}