Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A subcommand to run a shell snippet in the context of a biome environment #4

Open
1egoman opened this issue Sep 30, 2016 · 0 comments

Comments

@1egoman
Copy link
Owner

1egoman commented Sep 30, 2016

What it should do

Imagine a new biome environment has been defined called my-env, with a Biomefile available locally that references that environment. The environment contains a variable called FOO with a value of bar.

Right now, to run a command in biome's "context", you'd have to do this:

$ biome use
(my-env) $ echo $FOO
bar
(my-env) $ exit
$ # back to your prompt

I'm proposing this command, which would do the exact same thing:

$ biome exec echo $FOO
bar

(My inspiration for this is bundle exec.)

All that would have to be done is to repurpose biome use to work on the passed command, rather than $SHELL.

What I'm looking for

  • Write a biome exec command.
  • Write a test to make sure it works (you can mostly copy the biome use tests)

Thanks a bunch!

@1egoman 1egoman changed the title Add a command similar to bundle exec in the rails world. A command to run a command in the context of a biome environment Oct 15, 2016
@1egoman 1egoman changed the title A command to run a command in the context of a biome environment A subcommand to run a shell snippet in the context of a biome environment Oct 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant