Skip to content

chore: add --env flag to sandbox help command#362

Merged
avihut merged 1 commit intomasterfrom
feat/sandbox-help-env
Apr 11, 2026
Merged

chore: add --env flag to sandbox help command#362
avihut merged 1 commit intomasterfrom
feat/sandbox-help-env

Conversation

@avihut
Copy link
Copy Markdown
Owner

@avihut avihut commented Apr 11, 2026

Summary

  • Adds help --env to the dev sandbox: prints the currently-set DAFT_*, GIT_AUTHOR_*, and GIT_COMMITTER_* env vars that direnv loaded from the generated .envrc.
  • Filter is dynamic (no hardcoded list), so new vars added to .envrc get picked up automatically.
  • Documented in the sandbox README heredoc so it shows up in help.

Why chore and not feat

This is a developer-tooling quality-of-life improvement — it only affects the ephemeral sandbox used for manual testing. Tagging as chore to avoid a minor version bump.

Test plan

  • mise run sandbox in the worktree regenerates bin/help with the new branch
  • help --env prints the expected 11 vars (DAFT_CONFIG_DIR, DAFT_DATA_DIR, DAFT_NO_TRUST_PRUNE, DAFT_NO_UPDATE_CHECK, DAFT_SANDBOX_COMPLETIONS_DIR, DAFT_WORKTREE, GIT_AUTHOR_EMAIL, GIT_AUTHOR_NAME, GIT_COMMITTER_EMAIL, GIT_COMMITTER_NAME)
  • help with no args still prints the README via bat (existing behavior preserved)
  • mise run fmt:check passes
  • mise run clippy passes
  • mise run test:unit passes (963 tests)

🤖 Generated with Claude Code

Dumps the currently-set DAFT_* and GIT_AUTHOR_*/GIT_COMMITTER_* env
vars so developers can quickly inspect what direnv loaded into the
sandbox shell. The filter is dynamic (no hardcoded list), so new vars
added to .envrc are picked up automatically.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@avihut avihut added this to the Public Launch milestone Apr 11, 2026
@avihut avihut added the chore Maintenance tasks label Apr 11, 2026
@avihut avihut self-assigned this Apr 11, 2026
@avihut avihut added the chore Maintenance tasks label Apr 11, 2026
@avihut avihut merged commit 5f15f6b into master Apr 11, 2026
8 checks passed
@avihut avihut deleted the feat/sandbox-help-env branch April 11, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant