Skip to content

feat(pass): add -e/--env flag to run - #691

Merged
joe0BAB merged 1 commit into
mainfrom
feat/run-env
Oct 13, 2026
Merged

joe0BAB merged 1 commit into
mainfrom
feat/run-env

Conversation

@joe0BAB

@joe0BAB joe0BAB commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

Set a variable for the child as KEY=VALUE without exporting it into the calling shell. The value may be an se:// reference and is resolved like any other. The flag is repeatable and overrides --env-file, which in turn overrides the process environment, matching the precedence of docker run.

A bare KEY is rejected rather than passed through: the child already inherits the whole process environment, so the form has no use here.

Document the flag in the run help text and rework the examples around it: -e is now the primary form, shell scripts replace the opaque ./my-binary, and an inline sh -c example shows the quoting needed to leave expansion to the child shell.

Set a variable for the child as `KEY=VALUE` without exporting it into
the calling shell. The value may be an `se://` reference and is
resolved like any other. The flag is repeatable and overrides
`--env-file`, which in turn overrides the process environment, matching
the precedence of `docker run`.

A bare `KEY` is rejected rather than passed through: the child already
inherits the whole process environment, so the form has no use here.

Document the flag in the run help text and rework the examples around
it: `-e` is now the primary form, shell scripts replace the opaque
`./my-binary`, and an inline `sh -c` example shows the quoting needed
to leave expansion to the child shell.
@joe0BAB
joe0BAB marked this pull request as ready for review October 13, 2026 10:25

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

@joe0BAB
joe0BAB merged commit 7269cc1 into main Oct 13, 2026
24 checks passed
@joe0BAB
joe0BAB deleted the feat/run-env branch October 13, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants