像make,但用Python
项目描述
pike
它是 make
,但用Python。
示例
请参阅 examples/pikefile.py
以获取示例文件。
$ pike -f ./examples/pikefile.py --help
usage: pike [-h] [--file FILE] [--list] [--validate] {do-thing,wrapped-task} ...
An example pikefile
optional arguments:
-h, --help show this help message and exit
--file FILE, -f FILE pikefile.py to use. If not provided, look in the current working directory and all its parents
--list List tasks
--validate Validate tasks
Tasks:
Things to run
{do-thing,wrapped-task}
每个任务也都有 --help
$ pike -f ./examples/pikefile.py do-thing --help
usage: pike do-thing [-h] thing
Do a thing, and do it perfectly
positional arguments:
thing The thing to do
optional arguments:
-h, --help show this help message and exit
如果提供了默认值,它也会显示
$ pike -f ./examples/pikefile.py wrapped-task --help
usage: pike wrapped-task [-h] [--thing THING]
optional arguments:
-h, --help show this help message and exit
--thing THING (default: Rap)
如果提供了类型,它将自动进行类型转换。
项目详情
下载文件
下载适用于您平台的应用程序。如果您不确定选择哪个,请了解更多关于 安装包 的信息。
源分布
pike-tasks-0.0.1.tar.gz (7.3 kB 查看哈希值)
构建分布
pike_tasks-0.0.1-py3-none-any.whl (8.0 kB 查看哈希值)