Skip to content

Commit

Permalink
Added oci example in score-compose init --help (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-benoit authored Oct 20, 2024
2 parents 95c2ff8 + 02f7f73 commit 2f3cf2c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion internal/command/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,12 @@ func init() {
initCmd.Flags().StringP(initCmdFileFlag, "f", scoreFileDefault, "The score file to initialize")
initCmd.Flags().StringP(initCmdFileProjectFlag, "p", "", "Set the name of the docker compose project (defaults to the current directory name)")
initCmd.Flags().Bool(initCmdFileNoSampleFlag, false, "Disable generation of the sample score file")
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.")
initCmd.Flags().StringArray(initCmdProvisionerFlag, nil, "Provisioner files to install. May be specified multiple times. Supports:\n"+
"- HTTP : http://host/file\n"+
"- HTTPS : https://host/file\n"+
"- Git (SSH) : git-ssh://git@host/repo.git/file\n"+
"- Git (HTTPS) : git-https://host/repo.git/file\n"+
"- OCI : oci://[registry/][namespace/]repository[:tag|@digest]")

rootCmd.AddCommand(initCmd)
}
Expand Down
7 changes: 6 additions & 1 deletion internal/command/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ Flags:
-h, --help help for init
--no-sample Disable generation of the sample score file
-p, --project string Set the name of the docker compose project (defaults to the current directory name)
--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.
--provisioners stringArray Provisioner files to install. May be specified multiple times. Supports:
- HTTP : http://host/file
- HTTPS : https://host/file
- Git (SSH) : git-ssh://git@host/repo.git/file
- Git (HTTPS) : git-https://host/repo.git/file
- OCI : oci://[registry/][namespace/]repository[:tag|@digest]
Global Flags:
--quiet Mute any logging output
Expand Down

0 comments on commit 2f3cf2c

Please sign in to comment.