doit cmd插件:创建任务的依赖关系图图像
doit-graph的Python项目详细描述
doit图
生成doit任务的图(使用graphviz的点)。
doit tutorial任务示例:
安装
pip安装doit图
用法
$ doit graph
$ dot -Tpng tasks.dot -o tasks.png
默认情况下,子任务是隐藏的。使用选项
--show-subtasks
显示它们。默认情况下,所有任务都包含在图表中。 可以指定哪些任务应包含在图表中(注意,将自动包含依赖项)。
要按执行顺序(即依赖方向的相反方向)绘制任务,请使用选项
--reverse
$ doit graph --reverse
- 要从左到右而不是从上到下绘制任务,请使用选项
--horizontal
或-h
$ doit graph --horizontal
图例
- 组任务在节点中具有双绑定边框
task-dep
箭头有实心头setup-task
箭头有一个空的头
限制
calc_dep
和delayed-tasks
不受支持。
开发注释
http://graphviz.org/doc/info/attrs.html