1egoman / 1egoman/biome

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

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
hacktoberfest help wanted
Dominant language
Shell
Stars
52
Forks
9
PR merge metrics
No merged PRs in 30d

Description

## 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!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.