abiosoft / abiosoft/ishell

Feature Request: Provide ability to invoke chained functions

未關閉
#59 3 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Go
星號
1.8k
分支
213
PR 合併指標
30 天內沒有已合併 PR

描述

Hi,

given that I have a chain of Cmds (update, user, set, name) and "john" being an argument:
```
>>> update user set name john
```

It would be nice to have the invocation of this string as a subsequent invocation of all cmds in the chain. resulting in:
update.Func() -> user.Func() -> set.Func() -> name.Func() -> (c.Args[0] == john)

rather than only the function of `name`

right now I could parse c.RawArgs when name.Func() is called and call each cmds by myself. but it would be nice to have it built in into ishell.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。