Skip to content

Commit fa47761

Browse files
committed
simplify AsciiTree API
1 parent 8e5ca5e commit fa47761

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/scala-sbt-0.13/net/virtualvoid/sbt/graph/rendering/AsciiGraph.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ object AsciiGraph {
4949
log.info("Note: The old tree layout is still available by using `dependency-tree`")
5050
}
5151

52-
log.info(rendering.AsciiTree.asciiTree(moduleGraph.value))
52+
log.info(AsciiTree(moduleGraph.value))
5353

5454
if (!force) {
5555
log.info("\n")

src/main/scala/net/virtualvoid/sbt/graph/DependencyGraphSettings.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import sbt._
2222
import Keys._
2323
import sbt.complete.Parser
2424
import net.virtualvoid.sbt.graph.backend.{ IvyReport, SbtUpdateReport }
25-
import net.virtualvoid.sbt.graph.rendering.{ AsciiGraph, DagreHTML }
25+
import net.virtualvoid.sbt.graph.rendering.{ AsciiGraph, AsciiTree, DagreHTML }
2626
import net.virtualvoid.sbt.graph.util.IOUtil
2727
import internal.librarymanagement._
2828
import librarymanagement._
@@ -65,7 +65,7 @@ object DependencyGraphSettings {
6565
else moduleGraph
6666
},
6767
moduleGraphStore := (moduleGraph storeAs moduleGraphStore triggeredBy moduleGraph).value,
68-
asciiTree := rendering.AsciiTree.asciiTree(moduleGraph.value),
68+
asciiTree := AsciiTree(moduleGraph.value),
6969
dependencyTree := print(asciiTree).value,
7070
dependencyGraphMLFile := { target.value / "dependencies-%s.graphml".format(config.toString) },
7171
dependencyGraphML := dependencyGraphMLTask.value,
@@ -93,7 +93,7 @@ object DependencyGraphSettings {
9393
},
9494
whatDependsOn := {
9595
val module = artifactIdParser.parsed
96-
streams.value.log.info(rendering.AsciiTree.asciiTree(GraphTransformations.reverseGraphStartingAt(moduleGraph.value, module)))
96+
streams.value.log.info(AsciiTree(GraphTransformations.reverseGraphStartingAt(moduleGraph.value, module)))
9797
},
9898
licenseInfo := showLicenseInfo(moduleGraph.value, streams.value)) ++ AsciiGraph.asciiGraphSetttings)
9999

0 commit comments

Comments
 (0)