From 2fefb1b1b163b9e2e825931a8f8e805390573cf3 Mon Sep 17 00:00:00 2001 From: Cameron Durham Date: Fri, 27 Aug 2021 01:48:27 -0700 Subject: [PATCH] Update README.md with new command and fix subcommand help text --- README.md | 13 +++++++++++++ cmd/update.go | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8fde4b9..f088e73 100644 --- a/README.md +++ b/README.md @@ -232,6 +232,19 @@ Usage: ch running ``` +### `ch update` + +update an environment's image + +If you specified a Dockerfile when using `ch create`, this will re-build that image. +If you specified a remote container registry when using `ch create`, it will try +to re-pull the image from that path. + +```txt +Usage: + ch update [ENVIRONMENT_NAME] +``` + ## More Examples ```shell script diff --git a/cmd/update.go b/cmd/update.go index ba2731b..e33109b 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -10,7 +10,7 @@ import ( // updateCmd represents the update command var updateCmd = &cobra.Command{ - Use: "update", + Use: "update [ENVIRONMENT_NAME]", Short: "download or rebuild environment's image", Args: cobra.MinimumNArgs(1), Version: rootCmd.Version,