Skip to content

Commit d1614cc

Browse files
fix #2 - consistent mention of the [:TAG] arg in usage/help
1 parent 9367e6d commit d1614cc

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

cmd/docker-cli-plugin-metadata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var dockerCliPluginMetadataCmd = &cobra.Command{
4040
enc := json.NewEncoder(os.Stdout)
4141
enc.SetIndent("", " ")
4242
// specs: https://docs.docker.com/engine/extend/cli_plugins/#the-docker-cli-plugin-metadata-subcommand
43-
d := map[string]string{"SchemaVersion": "0.1.0", "Vendor": "Christian Korneck", "Version": "1.0.1", "ShortDescription": "Push Readme to container registry"}
43+
d := map[string]string{"SchemaVersion": "0.1.0", "Vendor": "Christian Korneck", "Version": "1.0.2", "ShortDescription": "Push Readme to container registry"}
4444
enc.Encode(d)
4545
},
4646
}

cmd/pushrm.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var pushrmCmd = &cobra.Command{
4747
Short: "push README file from current working directory to container registry (Dockerhub, quay, harbor2)",
4848
Long: `help for docker pushrm
4949
50-
docker pushrm [IMAGE] [flags]
50+
docker pushrm NAME[:TAG] [flags]
5151
5252
pushes the README.md file from the current working
5353
directory to the container registry (Dockerhub, quay, harbor2)
@@ -125,6 +125,14 @@ var pushrmCmd = &cobra.Command{
125125
docker pushrm is being called.
126126
127127
128+
Optional [:TAG] argument
129+
========================
130+
131+
The [:TAG] argument is optional and has no effect for the currently
132+
supported providers (which only support a README per repo, not per
133+
tag). It is in place in case that additional providers get added in
134+
the future that support READMEs on the tag level.
135+
128136
129137
`,
130138
Run: func(cmd *cobra.Command, args []string) {

0 commit comments

Comments
 (0)