feat(cmd): renamed --secret to --include-secret across the board when getting secrets

This commit is contained in:
Lewis Wynne 2025-11-07 00:08:42 +00:00
parent 14ce0cbe72
commit 3f30a23c36
3 changed files with 6 additions and 6 deletions

View file

@ -54,7 +54,7 @@ func dump(cmd *cobra.Command, args []string) error {
return fmt.Errorf("unsupported encoding %q", mode) return fmt.Errorf("unsupported encoding %q", mode)
} }
includeSecret, err := cmd.Flags().GetBool("secret") includeSecret, err := cmd.Flags().GetBool("include-secret")
if err != nil { if err != nil {
return err return err
} }
@ -115,7 +115,7 @@ func dump(cmd *cobra.Command, args []string) error {
func init() { func init() {
dumpCmd.Flags().StringP("encoding", "e", "auto", "value encoding: auto, base64, or text") dumpCmd.Flags().StringP("encoding", "e", "auto", "value encoding: auto, base64, or text")
dumpCmd.Flags().Bool("secret", false, "Include entries marked as secret") dumpCmd.Flags().Bool("include-secret", false, "Include entries marked as secret")
rootCmd.AddCommand(dumpCmd) rootCmd.AddCommand(dumpCmd)
} }

View file

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

View file

@ -64,7 +64,7 @@ func list(cmd *cobra.Command, args []string) error {
delimiter = "\t\t" delimiter = "\t\t"
} }
includeSecret, err := cmd.Flags().GetBool("secret") includeSecret, err := cmd.Flags().GetBool("include-secret")
if err != nil { if err != nil {
return err return err
} }
@ -109,6 +109,6 @@ func list(cmd *cobra.Command, args []string) error {
func init() { func init() {
listCmd.Flags().BoolP("include-binary", "b", false, "include binary data in text output") listCmd.Flags().BoolP("include-binary", "b", false, "include binary data in text output")
listCmd.Flags().StringP("delimiter", "d", "\t\t", "string written between key and value columns") listCmd.Flags().StringP("delimiter", "d", "\t\t", "string written between key and value columns")
listCmd.Flags().Bool("secret", false, "include entries marked as secret") listCmd.Flags().Bool("include-secret", false, "include entries marked as secret")
rootCmd.AddCommand(listCmd) rootCmd.AddCommand(listCmd)
} }