diff --git a/cmd/notary/main.go b/cmd/notary/main.go index 96637eb6f2..ff87f83a0b 100644 --- a/cmd/notary/main.go +++ b/cmd/notary/main.go @@ -95,8 +95,8 @@ func main() { NotaryCmd.AddCommand(cmdTufList) NotaryCmd.AddCommand(cmdTufAdd) NotaryCmd.AddCommand(cmdTufRemove) - NotaryCmd.AddCommand(cmdTufPush) - cmdTufPush.Flags().StringVarP(&remoteTrustServer, "remote", "r", "", "Remote trust server location") + NotaryCmd.AddCommand(cmdTufPublish) + cmdTufPublish.Flags().StringVarP(&remoteTrustServer, "remote", "r", "", "Remote trust server location") NotaryCmd.AddCommand(cmdTufLookup) cmdTufLookup.Flags().StringVarP(&remoteTrustServer, "remote", "r", "", "Remote trust server location") diff --git a/cmd/notary/tuf.go b/cmd/notary/tuf.go index f2747d937f..6823c3e8a1 100644 --- a/cmd/notary/tuf.go +++ b/cmd/notary/tuf.go @@ -29,9 +29,9 @@ var cmdTufList = &cobra.Command{ } var cmdTufAdd = &cobra.Command{ - Use: "add [ GUN ] ", - Short: "pushes local updates.", - Long: "pushes all local updates within a specific TUF repo to remote trust server.", + Use: "add [ GUN ] ", + Short: "adds the file as a target to the GUN.", + Long: "adds the file as a target to the local trusted collection Global Unique Name.", Run: tufAdd, } @@ -56,11 +56,11 @@ var cmdTufLookup = &cobra.Command{ Run: tufLookup, } -var cmdTufPush = &cobra.Command{ - Use: "push [ GUN ]", +var cmdTufPublish = &cobra.Command{ + Use: "publish [ GUN ]", Short: "initializes the local TUF repository.", - Long: "creates locally the initial set of TUF metadata for the Globally Unique Name.", - Run: tufPush, + Long: "publishes the local changes to the remote trust server.", + Run: tufPublish, } func tufAdd(cmd *cobra.Command, args []string) { @@ -292,7 +292,7 @@ func tufLookup(cmd *cobra.Command, args []string) { fmt.Println(targetName, fmt.Sprintf("sha256:%s", meta.Hashes["sha256"]), meta.Length) } -func tufPush(cmd *cobra.Command, args []string) { +func tufPublish(cmd *cobra.Command, args []string) { if len(args) < 1 { cmd.Usage() fatalf("must specify a GUN")