From 528c5326a42225579ca0cf70c6287d922dc47613 Mon Sep 17 00:00:00 2001 From: Knative Prow Robot Date: Wed, 5 Jul 2023 21:18:40 +0100 Subject: [PATCH] added shorthand -R for --remote flag (#1845) Signed-off-by: ntishchauhan0022 Co-authored-by: ntishchauhan0022 --- cmd/deploy.go | 2 +- docs/reference/func_deploy.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/deploy.go b/cmd/deploy.go index c4ce00af34..380542616f 100644 --- a/cmd/deploy.go +++ b/cmd/deploy.go @@ -163,7 +163,7 @@ EXAMPLES "Git revision (branch) to be used when deploying via the Git repository ($FUNC_GIT_BRANCH)") cmd.Flags().StringP("git-dir", "d", f.Build.Git.ContextDir, "Directory in the Git repository containing the function (default is the root) ($FUNC_GIT_DIR)") - cmd.Flags().Bool("remote", f.Deploy.Remote, + cmd.Flags().BoolP("remote", "R", f.Deploy.Remote, "Trigger a remote deployment. Default is to deploy and build from the local system ($FUNC_REMOTE)") cmd.Flags().String("pvc-size", fn.DefaultPersistentVolumeClaimSize, "Configure the PVC size used by a pipeline during remote build.") diff --git a/docs/reference/func_deploy.md b/docs/reference/func_deploy.md index 00614c5234..f0b960f95e 100644 --- a/docs/reference/func_deploy.md +++ b/docs/reference/func_deploy.md @@ -119,7 +119,7 @@ func deploy -u, --push Push the function image to registry before deploying. ($FUNC_PUSH) (default true) --pvc-size string Configure the PVC size used by a pipeline during remote build. (default "256Mi") -r, --registry string Container registry + registry namespace. (ex 'ghcr.io/myuser'). The full image name is automatically determined using this along with function name. ($FUNC_REGISTRY) - --remote Trigger a remote deployment. Default is to deploy and build from the local system ($FUNC_REMOTE) + -R, --remote Trigger a remote deployment. Default is to deploy and build from the local system ($FUNC_REMOTE) -v, --verbose Print verbose logs ($FUNC_VERBOSE) ```