Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 7c0b3a9

Browse files
committed
fix examples
1 parent 87b9aaf commit 7c0b3a9

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

ci/steps/gendocs.sh

-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ rm -rf ./docs
1111
mkdir ./docs
1212
go run ./cmd/coder gen-docs ./docs
1313

14-
# remove cobra footer from each file
15-
for filename in ./docs/*.md; do
16-
trimmed=$(head -n $(( $(wc -l "$filename" | awk '{print $1}') - 1 )) "$filename")
17-
echo "$trimmed" >$filename
18-
done
19-
2014
if [[ ${CI-} && $(git ls-files --other --modified --exclude-standard) ]]; then
2115
echo "Documentation needs generation:"
2216
git -c color.ui=always status | grep --color=no '\e\[31m'

internal/cmd/envs.go

+2-5
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,10 @@ func createEnvCommand() *cobra.Command {
150150
Hidden: true,
151151
Long: "Create a new environment under the active user.",
152152
Example: `# create a new environment using default resource amounts
153-
coder envs create --image id-of-imported-image my-env-name
153+
coder envs create --image 5f443b16-30652892427b955601330fa5 my-env-name
154154
155155
# create a new environment using custom resource amounts
156-
coder envs create --cores 4 --disk 100 --memory 8 --image id-of-imported-image --org id-of-existing-organization my-env-name
157-
158-
# using short-hand flags.
159-
coder envs create -c 4 -d 100 -m 8 -i id-of-imported-image -o id-of-existing-organization my-env-name`,
156+
coder envs create --cpu 4 --disk 100 --memory 8 --image 5f443b16-30652892427b955601330fa5 my-env-name`,
160157
RunE: func(cmd *cobra.Command, args []string) error {
161158
if img == "" {
162159
return xerrors.New("image id unset")

0 commit comments

Comments
 (0)