docs: escape enum pipe (#11513)

This commit is contained in:
Marcin Tojek
2024-01-09 13:39:38 +00:00
committed by GitHub
parent 525e6e5dc8
commit e5b9d63901
7 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -484,7 +484,7 @@ func (e *Enum) Set(v string) error {
}
func (e *Enum) Type() string {
return fmt.Sprintf("enum[%v]", strings.Join(e.Choices, "|"))
return fmt.Sprintf("enum[%v]", strings.Join(e.Choices, "\\|"))
}
func (e *Enum) String() string {
+2 -2
View File
@@ -93,8 +93,8 @@ Specifies whether or not to keep options from previous run of config-ssh.
### --wait
| | |
| ----------- | ---------------------------------- | --- | ------------ |
| Type | <code>enum[yes | no | auto]</code> |
| ----------- | ---------------------------------- |
| Type | <code>enum[yes\|no\|auto]</code> |
| Environment | <code>$CODER_CONFIGSSH_WAIT</code> |
| Default | <code>auto</code> |
+4 -4
View File
@@ -22,10 +22,10 @@ Specifies whether to wait for a direct connection before testing speed.
### --direction
| | |
| ------- | ----------------- | ------------ |
| Type | <code>enum[up | down]</code> |
| Default | <code>down</code> |
| | |
| ------- | --------------------------- |
| Type | <code>enum[up\|down]</code> |
| Default | <code>down</code> |
Specifies whether to run in reverse mode where the client receives and the server sends.
+5 -5
View File
@@ -87,11 +87,11 @@ Specifies whether to emit SSH output over stdin/stdout.
### --wait
| | |
| ----------- | ---------------------------- | --- | ------------ |
| Type | <code>enum[yes | no | auto]</code> |
| Environment | <code>$CODER_SSH_WAIT</code> |
| Default | <code>auto</code> |
| | |
| ----------- | -------------------------------- |
| Type | <code>enum[yes\|no\|auto]</code> |
| Environment | <code>$CODER_SSH_WAIT</code> |
| Default | <code>auto</code> |
Specifies whether or not to wait for the startup script to finish executing. Auto means that the agent startup script behavior configured in the workspace template is used.
+4 -4
View File
@@ -32,9 +32,9 @@ Path for which to check disk usage.
### --prefix
| | |
| ------- | --------------- | --- | --- | ---------- |
| Type | <code>enum[Ki | Mi | Gi | Ti]</code> |
| Default | <code>Gi</code> |
| | |
| ------- | --------------------------------- |
| Type | <code>enum[Ki\|Mi\|Gi\|Ti]</code> |
| Default | <code>Gi</code> |
SI Prefix for disk measurement.
+4 -4
View File
@@ -31,9 +31,9 @@ Output format. Available formats: text, json.
### --prefix
| | |
| ------- | --------------- | --- | --- | ---------- |
| Type | <code>enum[Ki | Mi | Gi | Ti]</code> |
| Default | <code>Gi</code> |
| | |
| ------- | --------------------------------- |
| Type | <code>enum[Ki\|Mi\|Gi\|Ti]</code> |
| Default | <code>Gi</code> |
SI Prefix for memory measurement.
+3 -3
View File
@@ -14,8 +14,8 @@ coder templates init [flags] [directory]
### --id
| | |
| ---- | --------------------------- | --------- | ----------- | ----------- | -------- | ------ | ---------------- | --------- | ---------------- | ----------- | ---------- | -------------------- |
| Type | <code>enum[aws-devcontainer | aws-linux | aws-windows | azure-linux | do-linux | docker | gcp-devcontainer | gcp-linux | gcp-vm-container | gcp-windows | kubernetes | nomad-docker]</code> |
| | |
| ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Type | <code>enum[aws-devcontainer\|aws-linux\|aws-windows\|azure-linux\|do-linux\|docker\|gcp-devcontainer\|gcp-linux\|gcp-vm-container\|gcp-windows\|kubernetes\|nomad-docker]</code> |
Specify a given example template by ID.