Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
DSpinellis
· 1y ago · 0 comments
Thank you for the suggestion. This would mean that you'd also then create some mapping from each name (like git_log) to its implementation, right?
Comments
[–]
esafak
1y ago
Yes, using shell functions:
git_log() { git log --pretty=tformat:'%at %ae' }
Separating function definitions allows you to run, test, and re-use them.
[–]
DSpinellis
OP
1y ago
And, more importantly, assign a name to a process, so that it can appear multiple times in the graph.
[–]
UltraSane
1y ago
You might want to try looking at the Neo4j query language Cypher for some possible inspiration for the syntax.