feat(cmd): renamed --secret to --include-secret across the board when getting secrets
This commit is contained in:
parent
14ce0cbe72
commit
3f30a23c36
3 changed files with 6 additions and 6 deletions
|
|
@ -54,7 +54,7 @@ func dump(cmd *cobra.Command, args []string) error {
|
|||
return fmt.Errorf("unsupported encoding %q", mode)
|
||||
}
|
||||
|
||||
includeSecret, err := cmd.Flags().GetBool("secret")
|
||||
includeSecret, err := cmd.Flags().GetBool("include-secret")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -115,7 +115,7 @@ func dump(cmd *cobra.Command, args []string) error {
|
|||
|
||||
func init() {
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ func get(cmd *cobra.Command, args []string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
includeSecret, err := cmd.Flags().GetBool("secret")
|
||||
includeSecret, err := cmd.Flags().GetBool("include-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("secret", false, "display values marked as secret")
|
||||
getCmd.Flags().Bool("include-secret", false, "display values marked as secret")
|
||||
rootCmd.AddCommand(getCmd)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ func list(cmd *cobra.Command, args []string) error {
|
|||
delimiter = "\t\t"
|
||||
}
|
||||
|
||||
includeSecret, err := cmd.Flags().GetBool("secret")
|
||||
includeSecret, err := cmd.Flags().GetBool("include-secret")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -109,6 +109,6 @@ func list(cmd *cobra.Command, args []string) error {
|
|||
func init() {
|
||||
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().Bool("secret", false, "include entries marked as secret")
|
||||
listCmd.Flags().Bool("include-secret", false, "include entries marked as secret")
|
||||
rootCmd.AddCommand(listCmd)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue