This repository was archived by the owner on Aug 30, 2024. It is now read-only.
File tree 2 files changed +2
-11
lines changed
2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,6 @@ rm -rf ./docs
11
11
mkdir ./docs
12
12
go run ./cmd/coder gen-docs ./docs
13
13
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
-
20
14
if [[ ${CI-} && $( git ls-files --other --modified --exclude-standard) ]]; then
21
15
echo " Documentation needs generation:"
22
16
git -c color.ui=always status | grep --color=no ' \e\[31m'
Original file line number Diff line number Diff line change @@ -150,13 +150,10 @@ func createEnvCommand() *cobra.Command {
150
150
Hidden : true ,
151
151
Long : "Create a new environment under the active user." ,
152
152
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
154
154
155
155
# 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` ,
160
157
RunE : func (cmd * cobra.Command , args []string ) error {
161
158
if img == "" {
162
159
return xerrors .New ("image id unset" )
You can’t perform that action at this time.
0 commit comments