Proposal: `shadowenv -C $dir`
Open
@GustavoCaso is already working on this.
Since Aug 2, 2019.
- Dominant language
- Rust
- Stars
- 458
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
I propose adding -C|--change-dir to Shadowenv, which would change to the indicated directory before executing the command. Behaviour per command:
shadowenv help: no obvious changeshadowenv init: no obvious changeshadowenv hook: evaluate the shadowlisp from the indicated directory rather than the current one.shadowenv trust: trust the./.shadowenv.dfrom the indicated directory rather than the current one.shadowenv exec: Change to the indicated directory before loading the environment and executing the indicated process.shadowenv diff: unclear. Probably none? Conceivably we could apply the environment changes indicated by the directory's shadowlisp first.
Example usage:
shadowenv -C /my/project exec irb
I don't actually have any need motivating this, but I think it'd be a nice, obvious, and relatively simple feature.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.