Skip to content

Proposal: shadowenv -C $dirΒ #47

@burke

Description

@burke

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 change
  • shadowenv init: no obvious change
  • shadowenv hook: evaluate the shadowlisp from the indicated directory rather than the current one.
  • shadowenv trust: trust the ./.shadowenv.d from 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions