abiosoft / abiosoft/ishell

How to find the parent of subcommand?

Đang mở
#111 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
1.8k
Fork
213
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.