Skip to content

Commit 5d53c0c

Browse files
committed
Use same ANSI color formatting for shell commands as Yarn
1 parent 00b1030 commit 5d53c0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lsif-java/src/main/scala/com/sourcegraph/lsif_java/commands/IndexCommand.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import java.nio.file.Paths
66

77
import com.sourcegraph.io.AbsolutePath
88
import com.sourcegraph.lsif_java.buildtools.BuildTool
9+
import fansi.Color
910
import moped.annotations._
1011
import moped.cli.Application
1112
import moped.cli.Command
1213
import moped.cli.CommandParser
1314
import moped.internal.reporters.Levenshtein
1415
import os.CommandResult
15-
import os.Inherit
16-
import os.Shellable
1716
import os.ProcessOutput
17+
import os.Shellable
1818

1919
@Description(
2020
"Automatically generate an LSIF index in the current working directory."
@@ -66,7 +66,7 @@ case class IndexCommand(
6666
shellable: Shellable,
6767
env: Map[String, String] = Map.empty
6868
): CommandResult = {
69-
app.info(shellable.value.mkString(" "))
69+
app.out.println(Color.DarkGray(shellable.value.mkString("$ ", " ", "")))
7070
app
7171
.process(shellable)
7272
.call(

0 commit comments

Comments
 (0)