airshipctl/cmd/config/testdata/TestConfigSetManifestGoldenOutput/config-cmd-set-manifest-with-help.golden
Sreejith Punnapuzha a1226660d6 New CLI option to get/set manifest
This commit adds get-manifests and set-manifests option for airshipctl
config. get-manifests prints all the manifests in current config file.
set-manifests helps in setting/creating new manifests in current config
file.

Closes: #115
Change-Id: I7c677ed491a1d456744d27bf105f21e2b3c4e6aa
Signed-off-by: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
2020-06-25 18:47:51 -05:00

42 lines
1.5 KiB
Plaintext

Create or modify a manifests in the airshipctl config file.
Usage:
set-manifest NAME [flags]
Examples:
# Create a new manifest
airshipctl config set-manifest exampleManifest \
--repo exampleRepo \
--url https://github.com/site \
--branch master \
--primary \
--sub-path exampleSubpath \
--target-path exampleTargetpath
# Change the primary repo for manifest
airshipctl config set-manifest e2e \
--repo exampleRepo \
--primary
# Change the sub-path for manifest
airshipctl config set-manifest e2e \
--sub-path treasuremap/manifests/e2e
# Change the target-path for manifest
airshipctl config set-manifest e2e \
--target-path /tmp/e2e
Flags:
--branch string the branch to be associated with repository in this manifest
--commithash string the commit hash to be associated with repository in this manifest
--force if set, enable force checkout in repository with this manifest
-h, --help help for set-manifest
--primary if set, enable this repository as primary repository to be used with this manifest
--repo string the name of the repository to be associated with this manifest
--sub-path string the sub path to be set for this manifest
--tag string the tag to be associated with repository in this manifest
--target-path string the target path for to be set for this manifest
--url string the repository url to be associated with this manifest