mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
docs: escape enum pipe (#11513)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Generated
+2
-2
@@ -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> |
|
||||
|
||||
|
||||
Generated
+4
-4
@@ -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.
|
||||
|
||||
|
||||
Generated
+5
-5
@@ -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.
|
||||
|
||||
|
||||
Generated
+4
-4
@@ -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.
|
||||
|
||||
Generated
+4
-4
@@ -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.
|
||||
|
||||
Generated
+3
-3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user