Skip to content

feat: open a shell when 'wco exec' gets no command - #12

Merged
rdlugs merged 1 commit into
mainfrom
feat/exec-default-shell
Aug 4, 2026
Merged

feat: open a shell when 'wco exec' gets no command#12
rdlugs merged 1 commit into
mainfrom
feat/exec-default-shell

Conversation

@rdlugs

@rdlugs rdlugs commented Aug 4, 2026

Copy link
Copy Markdown
Owner

'wco exec 2.1' now drops into an interactive shell instead of failing with a Compose usage error. The shell is chosen inside the container by a 'sh -c' shim that execs the first candidate present, defaulting to bash then sh and configurable per workspace via a new [shell] table.

Also splice the service resolved from a container ID in after exec's own options rather than directly after the command: Compose stops reading options at the first positional argument, so 'wco exec 2.1 -u root whoami' previously produced
'exec php -u root whoami' and failed. Other commands keep the original position.

Claude-Session: https://claude.ai/code/session_01WvpyWdYg51uCtmwTnSqPrn

'wco exec 2.1' now drops into an interactive shell instead of failing
with a Compose usage error. The shell is chosen inside the container by
a 'sh -c' shim that execs the first candidate present, defaulting to
bash then sh and configurable per workspace via a new [shell] table.

Also splice the service resolved from a container ID in after exec's
own options rather than directly after the command: Compose stops
reading options at the first positional argument, so
'wco exec 2.1 -u root whoami' previously produced
'exec php -u root whoami' and failed. Other commands keep the original
position.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WvpyWdYg51uCtmwTnSqPrn
@rdlugs rdlugs self-assigned this Aug 4, 2026
@rdlugs rdlugs added the documentation Improvements or additions to documentation label Aug 4, 2026
@rdlugs
rdlugs merged commit 53ebc59 into main Aug 4, 2026
26 checks passed
@rdlugs
rdlugs deleted the feat/exec-default-shell branch August 4, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants