garykl / dotwarrior

meaningfull bullet lists with taskwarrior and graphviz
GNU General Public License v3.0
5 stars 0 forks source link

text-mode output user-command #2

Open linuxcaffe opened 9 years ago

linuxcaffe commented 9 years ago

If I recall correctly, graph-viz has a text-mode. Maybe dotwarrior could be used in the console (no GUI) and with a user-command, so something like;

task +work graphviz

would produce a graphiz text-mode hierarchical representation

garykl commented 9 years ago

Do you mean piping the command in?

task +work | dot

dot is one of several tools, that are shipped with graphviz (there is also neato, pdf, spdf, circo, ...) This pipe is executed inside dotwarrior at the moment. One could think about refactoring it out. But then the whole command for generating a picture would be

task export | dotwarrior.py | dot -Tsvg > graph.svg

Some examples could be wrapped in shellscripts, though.

linuxcaffe commented 9 years ago

I'm suggesting NOT generating a picture, but offering up a text-representation of the hierarchy in the console, a command-line function, and rather than constructing a pipe, creating a user command that does the same thing.