@@ -54,18 +54,18 @@ func init() {
5454var publishCmd = & cobra.Command {
5555 Use : `publish -f YAML_FILE [--no-cache] [--squash]
5656 faas-cli publish --image IMAGE_NAME
57- --handler HANDLER_DIR
58- --name FUNCTION_NAME
59- [--lang <ruby|python|python3|node|csharp|dockerfile>]
60- [--no-cache] [--squash]
61- [--regex "REGEX"]
62- [--filter "WILDCARD"]
63- [--parallel PARALLEL_DEPTH]
64- [--publish-arg KEY=VALUE]
65- [--publish-option VALUE]
66- [--copy-extra PATH]
67- [--tag <sha|branch|describe>]
68- [--platforms linux/arm/v7]` ,
57+ --handler HANDLER_DIR
58+ --name FUNCTION_NAME
59+ [--lang <ruby|python|python3|node|csharp|dockerfile>]
60+ [--no-cache] [--squash]
61+ [--regex "REGEX"]
62+ [--filter "WILDCARD"]
63+ [--parallel PARALLEL_DEPTH]
64+ [--publish-arg KEY=VALUE]
65+ [--publish-option VALUE]
66+ [--copy-extra PATH]
67+ [--tag <sha|branch|describe>]
68+ [--platforms linux/arm/v7]` ,
6969 Short : "Builds OpenFaaS function containers" ,
7070 Long : `Builds OpenFaaS function containers either via the supplied YAML config using
7171the "--yaml" flag (which may contain multiple function definitions), or directly
@@ -79,7 +79,7 @@ via flags.`,
7979 faas-cli publish -f ./stack.yml --filter "*gif*"
8080 faas-cli publish -f ./stack.yml --regex "fn[0-9]_.*"
8181 faas-cli publish --image=my_image --lang=python --handler=/path/to/fn/
82- --name=my_fn --squash
82+ --name=my_fn --squash
8383 faas-cli publish -f ./stack.yml --publish-label org.label-schema.label-name="value"` ,
8484 PreRunE : preRunBuild ,
8585 RunE : runPublish ,
0 commit comments