【文件属性】:
文件名称:arc:常规CLI
文件大小:83KB
文件格式:ZIP
更新时间:2021-03-08 14:27:26
python cli python3 Python
ARC:常规CLI
用于为Python 3.8构建简单且高度可扩展的CLI系统的工具
文件
安装
$ pip install arc-cli
克隆发展
$ git clone https://github.com/seanrcollings/arc
$ pip install -e arc
快速开始
from arc import CLI
cli = CLI ()
@ cli . command ( "hello" )
def hello ():
print ( "Hello, World!" )
cli ()
$ python example.py hello
Hello, World!
参考获取更多信息
测验
使用以下命令运行完整的测试套件
$ python3 -m tests
使用以下命令运行特定的测试用例
$ python3 -m tests [TEST CASE]
我