Skip to content

Conversation

@martinemde
Copy link
Collaborator

No description provided.

Implements -e/--env flag that accepts environment variables in KEY=VALUE format.
These variables are passed to the spawned command process.

Special case: When PWD is set, the actual process directory is changed
temporarily during spawn so the child process truly inherits the directory.

Examples:
- studio -e LANG=en echo "{{text}}"
- studio --env PWD=/path/to/dir ls
- studio -e VAR1=value1 -e VAR2=value2 cmd "{{arg}}"
Tests verify:
- Setting environment variables with -e flag
- Setting environment variables with --env flag
- Multiple environment variables with repeated flags
- Combining environment variables with template parameters

PWD tests are skipped due to inspector interaction issues,
but the PWD functionality works as verified by manual testing.
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