Skip to content

Commit 2f3cf2c

Browse files
Added oci example in score-compose init --help (#196)
2 parents 95c2ff8 + 02f7f73 commit 2f3cf2c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

internal/command/init.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,12 @@ func init() {
225225
initCmd.Flags().StringP(initCmdFileFlag, "f", scoreFileDefault, "The score file to initialize")
226226
initCmd.Flags().StringP(initCmdFileProjectFlag, "p", "", "Set the name of the docker compose project (defaults to the current directory name)")
227227
initCmd.Flags().Bool(initCmdFileNoSampleFlag, false, "Disable generation of the sample score file")
228-
initCmd.Flags().StringArray(initCmdProvisionerFlag, nil, "A provisioners file to install. May be specified multiple times. Supports http://host/file, https://host/file, git-ssh://git@host/repo.git/file, and git-https://host/repo.git/file formats.")
228+
initCmd.Flags().StringArray(initCmdProvisionerFlag, nil, "Provisioner files to install. May be specified multiple times. Supports:\n"+
229+
"- HTTP : http://host/file\n"+
230+
"- HTTPS : https://host/file\n"+
231+
"- Git (SSH) : git-ssh://git@host/repo.git/file\n"+
232+
"- Git (HTTPS) : git-https://host/repo.git/file\n"+
233+
"- OCI : oci://[registry/][namespace/]repository[:tag|@digest]")
229234

230235
rootCmd.AddCommand(initCmd)
231236
}

internal/command/init_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,12 @@ Flags:
6767
-h, --help help for init
6868
--no-sample Disable generation of the sample score file
6969
-p, --project string Set the name of the docker compose project (defaults to the current directory name)
70-
--provisioners stringArray A provisioners file to install. May be specified multiple times. Supports http://host/file, https://host/file, git-ssh://git@host/repo.git/file, and git-https://host/repo.git/file formats.
70+
--provisioners stringArray Provisioner files to install. May be specified multiple times. Supports:
71+
- HTTP : http://host/file
72+
- HTTPS : https://host/file
73+
- Git (SSH) : git-ssh://git@host/repo.git/file
74+
- Git (HTTPS) : git-https://host/repo.git/file
75+
- OCI : oci://[registry/][namespace/]repository[:tag|@digest]
7176
7277
Global Flags:
7378
--quiet Mute any logging output

0 commit comments

Comments
 (0)