Hacker News new | ask | show | jobs
by DSpinellis 260 days ago
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?
1 comments

Yes, using shell functions:

  git_log() {
    git log --pretty=tformat:'%at %ae'
  }
Separating function definitions allows you to run, test, and re-use them.
And, more importantly, assign a name to a process, so that it can appear multiple times in the graph.
You might want to try looking at the Neo4j query language Cypher for some possible inspiration for the syntax.