devcontainers / devcontainers/cli

allow exec command after --workspace-folder flag

未关闭
#1,050 6 条评论 1 个 reaction 已指派 2 人 已被 @v-Kaniska244 认领 在 GitHub 查看
主要语言
TypeScript
星标
3k
派生
457
平均合并
13 小时 17 分钟
30 天内合并 PR
6

描述

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"`.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。