Skip to content

Commit

Permalink
Merge pull request #311 from yndajas/master
Browse files Browse the repository at this point in the history
feat: support for rankdir in CLI
  • Loading branch information
PabloLION authored Jan 30, 2023
2 parents 50bc474 + 99238fd commit f95288f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ program
.option('--orphans', 'show modules that no one is depending on')
.option('--leaves', 'show modules that have no dependencies')
.option('--dot', 'show graph using the DOT language')
.option('--rankdir <direction>', 'set the direction of the graph layout')
.option('--extensions <list>', 'comma separated string of valid file extensions')
.option('--require-config <file>', 'path to RequireJS config')
.option('--webpack-config <file>', 'path to webpack config')
Expand Down Expand Up @@ -123,6 +124,10 @@ if (!program.color) {
config.edgeColor = '#757575';
}

if (program.rankdir) {
config.rankdir = program.rankdir;
}

function dependencyFilter() {
let prevFile;

Expand Down

0 comments on commit f95288f

Please sign in to comment.