devcontainers / devcontainers/cli

devcontainer exec attempts confuses args depending on order

Aperta
#657 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
TypeScript
Stelle
3k
Fork
457
Merge medio
13h 17m
PR unite (30g)
6

Descrizione

When running `devcontainer exec --workspace-folder . ls` everything works as expected.
When running `devcontainer --workspace-folder . exec ls` the devcontainer CLI attempts to run `exec` in the container. It confuses the args and interprets `exec` as `cmd`.

![image](https://github.com/devcontainers/cli/assets/3210701/8b655e87-52a0-4bf2-b6ac-d802835b1216)

Am I correct in assuming that `devcontainer --workspace-folder . exec` should be a valid way to invoke exec?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reproducing both command forms shown in the issue with the devcontainer CLI, then inspect how global options and the exec command are parsed. Confirm whether both argument orders are intended to work and make the behavior consistent or clearly documented, with coverage for the two invocations.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.