Skip to content

Commit d54ca81

Browse files
committed
gen
1 parent 7764535 commit d54ca81

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -343,4 +343,6 @@ On MacOS or Windows systems, we recommend either using a VM or the provided `.de
343343
| `--coder-agent-url` | `CODER_AGENT_URL` | | URL of the Coder deployment. If CODER_AGENT_TOKEN is also set, logs from envbuilder will be forwarded here and will be visible in the workspace build logs. |
344344
| `--coder-agent-token` | `CODER_AGENT_TOKEN` | | Authentication token for a Coder agent. If this is set, then CODER_AGENT_URL must also be set. |
345345
| `--coder-agent-subsystem` | `CODER_AGENT_SUBSYSTEM` | | Coder agent subsystems to report when forwarding logs. The envbuilder subsystem is always included. |
346+
| `--push-image` | `ENVBUILDER_PUSH_IMAGE` | | Flag to determine if the image should be pushed to the container registry. This option implies reproducible builds. |
347+
| `--get-cached-image` | `ENVBUILDER_GET_CACHED_IMAGE` | | Flag to determine if the cached image is available, and if it is, to return it. |
346348
<!--- END docsgen --->

options_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ func runCLI() envbuilder.Options {
181181
}
182182

183183
i := cmd.Invoke().WithOS()
184+
i.Args = []string{"--help"}
184185
fakeIO(i)
185186
err := i.Run()
186187
if err != nil {

testdata/options.golden

+8
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ OPTIONS:
7878
your system! This is used in cases where bypass is needed to unblock
7979
customers.
8080

81+
--get-cached-image bool, $ENVBUILDER_GET_CACHED_IMAGE
82+
Flag to determine if the cached image is available, and if it is, to
83+
return it.
84+
8185
--git-clone-depth int, $ENVBUILDER_GIT_CLONE_DEPTH
8286
The depth to use when cloning the Git repository.
8387

@@ -129,6 +133,10 @@ OPTIONS:
129133
should check for the presence of this script and execute it after
130134
successful startup.
131135

136+
--push-image bool, $ENVBUILDER_PUSH_IMAGE
137+
Flag to determine if the image should be pushed to the container
138+
registry. This option implies reproducible builds.
139+
132140
--setup-script string, $ENVBUILDER_SETUP_SCRIPT
133141
The script to run before the init script. It runs as the root user
134142
regardless of the user specified in the devcontainer.json file.

0 commit comments

Comments
 (0)