Skip to content

Commit 57bf664

Browse files
committed
sort
1 parent 23af808 commit 57bf664

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

docs/env-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
| `--git-ssh-private-key-path` | `ENVBUILDER_GIT_SSH_PRIVATE_KEY_PATH` | | Path to an SSH private key to be used for Git authentication. If this is set, then GIT_SSH_PRIVATE_KEY_BASE64 cannot be set. |
3232
| `--git-ssh-private-key-base64` | `ENVBUILDER_GIT_SSH_PRIVATE_KEY_BASE64` | | Base64 encoded SSH private key to be used for Git authentication. If this is set, then GIT_SSH_PRIVATE_KEY_PATH cannot be set. |
3333
| `--git-http-proxy-url` | `ENVBUILDER_GIT_HTTP_PROXY_URL` | | The URL for the HTTP proxy. This is optional. |
34-
| `--workspace-folder` | `ENVBUILDER_WORKSPACE_FOLDER` | | The path to the workspace folder that will be built. This is optional. Defaults to `[workspace base dir]/[name]` where name is the name of the repository or `empty`. |
3534
| `--workspace-base-dir` | `ENVBUILDER_WORKSPACE_BASE_DIR` | `/workspaces` | The path under which workspaces will be placed when workspace folder option is not given. |
35+
| `--workspace-folder` | `ENVBUILDER_WORKSPACE_FOLDER` | | The path to the workspace folder that will be built. This is optional. Defaults to `[workspace base dir]/[name]` where name is the name of the repository or `empty`. |
3636
| `--ssl-cert-base64` | `ENVBUILDER_SSL_CERT_BASE64` | | The content of an SSL cert file. This is useful for self-signed certificates. |
3737
| `--export-env-file` | `ENVBUILDER_EXPORT_ENV_FILE` | | Optional file path to a .env file where envbuilder will dump environment variables from devcontainer.json and the built container image. |
3838
| `--post-start-script-path` | `ENVBUILDER_POST_START_SCRIPT_PATH` | | The path to a script that will be created by envbuilder based on the postStartCommand in devcontainer.json, if any is specified (otherwise the script is not created). If this is set, the specified InitCommand should check for the presence of this script and execute it after successful startup. |

options/options.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ type Options struct {
116116
GitSSHPrivateKeyBase64 string
117117
// GitHTTPProxyURL is the URL for the HTTP proxy. This is optional.
118118
GitHTTPProxyURL string
119+
// WorkspaceBaseDir is the path under which workspaces will be placed when
120+
// workspace folder option is not given.
121+
WorkspaceBaseDir string
119122
// WorkspaceFolder is the path to the workspace folder that will be built.
120123
// This is optional. Defaults to `[workspace base dir]/[name]` where name is
121124
// the name of the repository or "empty".
122125
WorkspaceFolder string
123-
// WorkspaceBaseDir is the path under which workspaces will be placed when
124-
// workspace folder option is not given.
125-
WorkspaceBaseDir string
126126
// SSLCertBase64 is the content of an SSL cert file. This is useful for
127127
// self-signed certificates.
128128
SSLCertBase64 string
@@ -395,14 +395,6 @@ func (o *Options) CLI() serpent.OptionSet {
395395
Value: serpent.StringOf(&o.GitHTTPProxyURL),
396396
Description: "The URL for the HTTP proxy. This is optional.",
397397
},
398-
{
399-
Flag: "workspace-folder",
400-
Env: WithEnvPrefix("WORKSPACE_FOLDER"),
401-
Value: serpent.StringOf(&o.WorkspaceFolder),
402-
Description: "The path to the workspace folder that will be built. " +
403-
"This is optional. Defaults to `[workspace base dir]/[name]` where " +
404-
"name is the name of the repository or `empty`.",
405-
},
406398
{
407399
Flag: "workspace-base-dir",
408400
Env: WithEnvPrefix("WORKSPACE_BASE_DIR"),
@@ -411,6 +403,14 @@ func (o *Options) CLI() serpent.OptionSet {
411403
Description: "The path under which workspaces will be placed when " +
412404
"workspace folder option is not given.",
413405
},
406+
{
407+
Flag: "workspace-folder",
408+
Env: WithEnvPrefix("WORKSPACE_FOLDER"),
409+
Value: serpent.StringOf(&o.WorkspaceFolder),
410+
Description: "The path to the workspace folder that will be built. " +
411+
"This is optional. Defaults to `[workspace base dir]/[name]` where " +
412+
"name is the name of the repository or `empty`.",
413+
},
414414
{
415415
Flag: "ssl-cert-base64",
416416
Env: WithEnvPrefix("SSL_CERT_BASE64"),

0 commit comments

Comments
 (0)