diff --git a/cmd/notation/blob/cmd.go b/cmd/notation/blob/cmd.go index 212a4959c..6eae032a2 100644 --- a/cmd/notation/blob/cmd.go +++ b/cmd/notation/blob/cmd.go @@ -23,8 +23,8 @@ import ( func Cmd() *cobra.Command { command := &cobra.Command{ Use: "blob [command]", - Short: "Sign, inspect, and verify signatures and configure trust policies", - Long: "Sign, inspect, and verify signatures and configure trust policies.", + Short: "Sign, inspect, verify signatures, and configure trust policies for blob artifacts", + Long: "Sign, inspect, verify signatures, and configure trust policies for blob artifacts.", } command.AddCommand( diff --git a/cmd/notation/blob/policy/import.go b/cmd/notation/blob/policy/import.go index 91bdc8687..84af27174 100644 --- a/cmd/notation/blob/policy/import.go +++ b/cmd/notation/blob/policy/import.go @@ -40,7 +40,7 @@ func importCmd() *cobra.Command { Example - Import blob trust policy configuration from a file: notation blob policy import my_policy.json -Example - Import blob trust policy and override existing configuration: +Example - Import blob trust policy and override existing configuration without prompt: notation blob policy import my_policy.json --force `, Args: func(cmd *cobra.Command, args []string) error { @@ -54,7 +54,7 @@ Example - Import blob trust policy and override existing configuration: return runImport(opts) }, } - command.Flags().BoolVar(&opts.force, "force", false, "override the existing blob trust policy configuration, never prompt") + command.Flags().BoolVar(&opts.force, "force", false, "override the existing blob trust policy configuration without prompt") return command } diff --git a/cmd/notation/blob/policy/show.go b/cmd/notation/blob/policy/show.go index d66ee0bf6..1b11a8040 100644 --- a/cmd/notation/blob/policy/show.go +++ b/cmd/notation/blob/policy/show.go @@ -59,7 +59,7 @@ func runShow() error { err = doc.Validate() } if err != nil { - fmt.Fprintf(os.Stderr, "Existing blob trust policy file is invalid, you may update or create a new one via `notation blob policy import `. Please visit https://github.com/notaryproject/specifications/blob/main/specs/trust-store-trust-policy.md#trust-policy-for-blobs to find a valid blob trust policy example.\n") + fmt.Fprintf(os.Stderr, "Existing blob trust policy file is invalid, you may update or create a new one via `notation blob policy import `. See https://github.com/notaryproject/specifications/blob/main/specs/trust-store-trust-policy.md#trust-policy-for-blobs for a blob trust policy example.\n") os.Stdout.Write(policyJSON) return err }