aai-institute / aai-institute/jobq

Factor out CLI command-related functionality into a command class

未關閉
#70 0 則留言 0 個 reaction 已指派 1 人 已被 @nicholasjng 認領 在 GitHub 檢視
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 還沒有評估資料。

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

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