Skip to content

timmc/nephila

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nephila

Example graph

A nascent Leiningen plugin to show a graph of your namespaces.

Usage

To use nephila, graphviz must be installed and available on the path.

Put [org.timmc/nephila "0.3.0"] into the :plugins vector of your :user profile, or if you are on Leiningen 1.x do lein plugin install org.timmc/nephila 0.3.0.

Then you can run this in any project:

$ lein nephila output.png

and then open output.png in your image viewer of choice.

See lein help nephila for options. (View it online at end of nephila.clj.)

Tips and tricks

  • The sample graph-diff.sh script uses nephila to show just the subgraph containing namespaces changed on a git branch.

Changelog

v0.3.0

  • Add :rank-sep to options, defaulting to "2.5", for distance between nodes of different levels.

v0.2.0

  • Take options from project map and optional command line argument
  • Option added: :graph-orientation
  • Option added: :only for restricting set of nodes in graph (symbols and path strings)
  • Graph has random coloring for edges (makes intersections more readable)
  • Graph has wider spacing

v0.1.0

  • Basic functionality: Read src/, output graph to named file.

License

Copyright © 2013–2016 Tim McCormack and his employer, Brightcove (see commit emails to distinguish.)

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Show a graph of your Clojure namespaces (alpha!)

Resources

License

Stars

Watchers

Forks

Packages

No packages published