devcontainers / devcontainers/cli

devcontainer exec attempts confuses args depending on order

未关闭
#657 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
TypeScript
星标
3k
派生
457
平均合并
13 小时 17 分钟
30 天内合并 PR
6

描述

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?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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