Skip to content

Commit

Permalink
feat: support for rankdir in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
yndajas committed Jan 17, 2022
1 parent 715f1a0 commit 99238fd
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 @@ -130,6 +131,10 @@ if (!program.color) {
config.edgeColor = '#757575';
}

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

function dependencyFilter() {
let prevFile;

Expand Down

0 comments on commit 99238fd

Please sign in to comment.