Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Commit7c0b3a9

Browse files
committed
fix examples
1 parent87b9aaf commit7c0b3a9

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

‎ci/steps/gendocs.sh

Lines changed: 0 additions & 6 deletions
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-
forfilenamein ./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

Lines changed: 2 additions & 5 deletions
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 --imageid-of-imported-image my-env-name
153+
coder envs create --image5f443b16-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
ifimg=="" {
162159
returnxerrors.New("image id unset")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp