1egoman / 1egoman/biome

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

Đang mở
#4 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
hacktoberfest help wanted
Ngôn ngữ chính
Shell
Star
52
Fork
9
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.