devcontainers / devcontainers/cli

allow exec command after --workspace-folder flag

Aperta
#1,050 6 commenti 1 reazione 2 assegnatari Rivendicata da @v-Kaniska244 Vedi su GitHub
Lingua principale
TypeScript
Stelle
3k
Fork
457
Merge medio
13h 17m
PR unite (30g)
6

Descrizione

It seems that the 'exec' command is only allowed as the first parameter.

```
devcontainer --workspace-folder . exec ls
OCI runtime exec failed: exec failed: unable to start container process: exec: "exec": executable file not found in $PATH: unknown
```

Like `up` etc., it expects options followed by `exec` to be allowed.

With this change, one can create an alias as `alias devc="devcontainer --workspace-folder PATH"`.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.