feat(flags): negative flags added for defaults (--no-keys, --no-values), and removes --include- prefix from positive flags
This commit is contained in:
parent
434855e958
commit
4ace97bddc
3 changed files with 46 additions and 29 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue