How to find the parent of subcommand?
未关闭
- 主要语言
- Go
- 星标
- 1.8k
- 派生
- 213
- PR 合并指标
- 30 天内没有已合并 PR
描述
In case of subcommands, how to find the parent command, using the ishell context of the sub command?
For example:
Say mycmd and newcmd has 2 subcommands:
```
mycmd help
add del
newcmd help
add del
```
The handler for add receives the ishell.Context. How to figure if the parent of add is mycmd or newcmd?
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。