Git Product home page Git Product logo

poddotify's Introduction

poddotify

Poddotify is a command line tool written in Swift to read a Podfile.lock and generate a Dot source. The Dot source can then be processed by Graphviz, an open source graph rendering library, to generate a visualization of the dependency graph as a jpg, png, pdf or more.

For more information about Graphviz you can visit their official website https://www.graphviz.org

The command line tool will resolve the transitive closure to simplify the dependency graph and reduce the number of edges. It will also mark as a subgraph the dependencies that represents subspecs of a certain podspec or, optionally, reduce them to a single node in order to simplify the graph complexity.

USAGE:

  • -i filename : specify the .lock filename to be used as input
  • -o filename : output filename
  • -noversion : do not include dependency version numbers (-nv)
  • -nosubspecs : reduce subspecs subgraphs to a single node (-ns)
  • -lefttoright : print graph left to right (-lr)
  • -verbose : verbose output (-v)
  • -help : usage information (-h)

By default the input filename is Podfile.lock

Installation

You can use Homebrew to install the binary directly:

brew install gabrielepalma/tools/poddotify

Alternatively, you can clone this repository, edit the sources and build and run however you see fit.

Examples

Using Wordpress Podfile.lock: https://github.com/wordpress-mobile/WordPress-iOS

poddotify -i WP-Podfile.lock.txt -lr -ns 
dot WP-Podfile.lock.dot -Tjpg -O 

Using Artsy Podfile.lock: https://github.com/artsy/eidolon

poddotify -i Artsy-Podfile.lock.txt
dot Artsy-Podfile.lock.dot -Tjpg -O 

poddotify's People

Contributors

gabrielepalma avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.