Skip to content

Commit e521b4c

Browse files
0.22.0
1 parent d9e5e2d commit e521b4c

File tree

4 files changed

+35
-35
lines changed

4 files changed

+35
-35
lines changed

js/.changeset/issue-79-shell-detection.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

js/CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# start-command
22

3+
## 0.22.0
4+
5+
### Minor Changes
6+
7+
- 694d85e: feat: Add shell auto-detection and --shell option for isolation environments
8+
9+
In docker/ssh and other applicable isolation environments, the shell is now
10+
automatically detected in order of preference: `bash``zsh``sh`.
11+
12+
Previously, `/bin/sh` was hardcoded in Docker and SSH isolation, which prevented
13+
access to tools like `nvm` that require bash. Now, the most feature-complete
14+
available shell is used automatically.
15+
16+
Key features:
17+
- Auto-detect best available shell in Docker containers and SSH hosts (`bash > zsh > sh`)
18+
- New `--shell` option to force a specific shell (`auto`, `bash`, `zsh`, `sh`)
19+
- Default mode is `auto` — no need to specify `--shell` for automatic detection
20+
- `--shell` is passed through in isolation stacking
21+
22+
Example usage:
23+
24+
```bash
25+
# Auto-detect best shell (default behavior, no option needed)
26+
$ --isolated docker --image node:20 -- nvm use 20
27+
28+
# Force bash explicitly
29+
$ --isolated docker --image ubuntu:22.04 --shell bash -- echo $BASH_VERSION
30+
31+
# Use sh specifically
32+
$ --isolated ssh --endpoint user@host --shell sh -- echo hello
33+
```
34+
335
## 0.21.0
436

537
### Minor Changes

js/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "start-command",
3-
"version": "0.21.0",
3+
"version": "0.22.0",
44
"description": "Gamification of coding, execute any command with ability to auto-report issues on GitHub",
55
"main": "src/bin/cli.js",
66
"exports": {

0 commit comments

Comments
 (0)