Skip to content

Commit

Permalink
Merge pull request #4459 from werf/docs-fix-kube-run
Browse files Browse the repository at this point in the history
docs(kube-run): fix reference/--help
  • Loading branch information
ilya-lesikov committed May 18, 2022
2 parents f80a42e + dff1253 commit 4b8f236
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/werf/kube_run/kube_run.go
Expand Up @@ -191,8 +191,8 @@ func NewCmd() *cobra.Command {
cmd.Flags().BoolVarP(&cmdData.Interactive, "interactive", "i", common.GetBoolEnvironmentDefaultFalse("WERF_INTERACTIVE"), "Enable interactive mode (default $WERF_INTERACTIVE or false if not specified)")
cmd.Flags().BoolVarP(&cmdData.AllocateTty, "tty", "t", common.GetBoolEnvironmentDefaultFalse("WERF_TTY"), "Allocate a TTY (default $WERF_TTY or false if not specified)")
cmd.Flags().BoolVarP(&cmdData.AutoPullSecret, "auto-pull-secret", "", common.GetBoolEnvironmentDefaultTrue("WERF_AUTO_PULL_SECRET"), "Automatically create docker config secret in the namespace and plug it via pod's imagePullSecrets for private registry access (default $WERF_AUTO_PULL_SECRET or true if not specified)")
cmd.Flags().StringArrayVarP(&cmdData.CopyFrom, "copy-from", "", []string{}, "Copy file/dir from container to local machine after execution (default $WERF_COPY_FROM). Example: \"/from/file:to\".")
cmd.Flags().StringArrayVarP(&cmdData.CopyTo, "copy-to", "", []string{}, "Copy file/dir from local machine to container after execution (default $WERF_COPY_TO). Example: \"from:/to/file\".")
cmd.Flags().StringArrayVarP(&cmdData.CopyFrom, "copy-from", "", []string{}, "Copy file/dir from container to local machine after user command execution (default $WERF_COPY_FROM). Example: \"/from/file:to\".")
cmd.Flags().StringArrayVarP(&cmdData.CopyTo, "copy-to", "", []string{}, "Copy file/dir from local machine to container before user command execution (default $WERF_COPY_TO). Example: \"from:/to/file\".")

return cmd
}
Expand Down
6 changes: 3 additions & 3 deletions docs/_includes/reference/cli/werf_kube_run.md
Expand Up @@ -41,11 +41,11 @@ werf kube-run [options] [IMAGE_NAME] [-- COMMAND ARG...]
Custom configuration templates directory (default $WERF_CONFIG_TEMPLATES_DIR or .werf
in working directory)
--copy-from=[]
Copy file/dir from container to local machine after execution (default
Copy file/dir from container to local machine after user command execution (default
$WERF_COPY_FROM). Example: "/from/file:to".
--copy-to=[]
Copy file/dir from local machine to container after execution (default $WERF_COPY_TO).
Example: "from:/to/file".
Copy file/dir from local machine to container before user command execution (default
$WERF_COPY_TO). Example: "from:/to/file".
--dev=false
Enable development mode (default $WERF_DEV).
The mode allows working with project files without doing redundant commits during
Expand Down

0 comments on commit 4b8f236

Please sign in to comment.