mirror of https://github.com/docker/docs.git
Rename push to publish
This commit is contained in:
parent
49819d239d
commit
6a7a08195e
|
@ -95,8 +95,8 @@ func main() {
|
||||||
NotaryCmd.AddCommand(cmdTufList)
|
NotaryCmd.AddCommand(cmdTufList)
|
||||||
NotaryCmd.AddCommand(cmdTufAdd)
|
NotaryCmd.AddCommand(cmdTufAdd)
|
||||||
NotaryCmd.AddCommand(cmdTufRemove)
|
NotaryCmd.AddCommand(cmdTufRemove)
|
||||||
NotaryCmd.AddCommand(cmdTufPush)
|
NotaryCmd.AddCommand(cmdTufPublish)
|
||||||
cmdTufPush.Flags().StringVarP(&remoteTrustServer, "remote", "r", "", "Remote trust server location")
|
cmdTufPublish.Flags().StringVarP(&remoteTrustServer, "remote", "r", "", "Remote trust server location")
|
||||||
NotaryCmd.AddCommand(cmdTufLookup)
|
NotaryCmd.AddCommand(cmdTufLookup)
|
||||||
cmdTufLookup.Flags().StringVarP(&remoteTrustServer, "remote", "r", "", "Remote trust server location")
|
cmdTufLookup.Flags().StringVarP(&remoteTrustServer, "remote", "r", "", "Remote trust server location")
|
||||||
|
|
||||||
|
|
|
@ -29,9 +29,9 @@ var cmdTufList = &cobra.Command{
|
||||||
}
|
}
|
||||||
|
|
||||||
var cmdTufAdd = &cobra.Command{
|
var cmdTufAdd = &cobra.Command{
|
||||||
Use: "add [ GUN ] <target> <file path>",
|
Use: "add [ GUN ] <target> <file>",
|
||||||
Short: "pushes local updates.",
|
Short: "adds the file as a target to the GUN.",
|
||||||
Long: "pushes all local updates within a specific TUF repo to remote trust server.",
|
Long: "adds the file as a target to the local trusted collection Global Unique Name.",
|
||||||
Run: tufAdd,
|
Run: tufAdd,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,11 +56,11 @@ var cmdTufLookup = &cobra.Command{
|
||||||
Run: tufLookup,
|
Run: tufLookup,
|
||||||
}
|
}
|
||||||
|
|
||||||
var cmdTufPush = &cobra.Command{
|
var cmdTufPublish = &cobra.Command{
|
||||||
Use: "push [ GUN ]",
|
Use: "publish [ GUN ]",
|
||||||
Short: "initializes the local TUF repository.",
|
Short: "initializes the local TUF repository.",
|
||||||
Long: "creates locally the initial set of TUF metadata for the Globally Unique Name.",
|
Long: "publishes the local changes to the remote trust server.",
|
||||||
Run: tufPush,
|
Run: tufPublish,
|
||||||
}
|
}
|
||||||
|
|
||||||
func tufAdd(cmd *cobra.Command, args []string) {
|
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)
|
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 {
|
if len(args) < 1 {
|
||||||
cmd.Usage()
|
cmd.Usage()
|
||||||
fatalf("must specify a GUN")
|
fatalf("must specify a GUN")
|
||||||
|
|
Loading…
Reference in New Issue