Skip to content

feat: add devenv var subcommand#226

Draft
chromy wants to merge 1 commit intomainfrom
chromy/add-devenv-var-subcommand
Draft

feat: add devenv var subcommand#226
chromy wants to merge 1 commit intomainfrom
chromy/add-devenv-var-subcommand

Conversation

@chromy
Copy link

@chromy chromy commented Mar 9, 2026

Summary

  • Add new devenv var NAME subcommand that prints the value of a named devenv constant (for use in scripts)
  • Running devenv var with no argument lists all available variable names
  • Starts with a single var: root (the devenv root directory path, constants.root)

Test plan

  • pytest tests/test_var.py -v passes
  • devenv var root prints the devenv root path
  • devenv var lists available vars
  • devenv var nonexistent exits with code 1

🤖 Generated with Claude Code

Agent transcript: https://claudescope.sentry.dev/share/4IAZok5i0p6q-voNloMEu3wNAu1BhYw34S9AbIDJQZM

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@chromy chromy marked this pull request as draft March 9, 2026 18:22
@chromy chromy force-pushed the chromy/add-devenv-var-subcommand branch 2 times, most recently from 46932f9 to 2bf5636 Compare March 11, 2026 11:45
Add a new `devenv var NAME` subcommand that prints the value of a named
constant for use in scripts. Running `devenv var` with no argument lists
all available vars. Starts with a single var: `coderoot` (the devenv
coderoot directory path).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Agent transcript: https://claudescope.sentry.dev/share/MofunCNGyRQ4TLOPNiYbmHIuHezAv6fLRx4XihpIYLA
@chromy chromy force-pushed the chromy/add-devenv-var-subcommand branch from 2bf5636 to a453b95 Compare March 11, 2026 11:49
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.

1 participant