aai-institute / aai-institute/jobq
Factor out CLI command-related functionality into a command class
未關閉
client
- 主要語言
- Python
- 星號
- 4
- 分支
- 1
- PR 合併指標
- 30 天內沒有已合併 PR
描述
As per title. There is precedent for this in several widely used CLI libraries like `pip` (which has the `CLICommand` class).
What I am thinking of is mostly things like contextual organization around commands, a `Command.run(args: argparse.Namespace)` method, and perhaps some validation of an argparse namespace received by the command.
貢獻指南
評估
這個 Issue 還沒有評估資料。