We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents faecc57 + 96bdf87 commit 4bdba76Copy full SHA for 4bdba76
βcmd/root.go
@@ -1,6 +1,12 @@
1
package cmd
2
3
+import (
4
+ "github.com/mattn/go-colorable"
5
+)
6
+
7
func Main() {
8
+ defer colorable.EnableColorsStdout(nil)()
9
10
help, isThereFileArguments, files := getParametersAndFlags()
11
12
if help {
@@ -9,7 +15,7 @@ func Main() {
15
}
16
17
if isThereFileArguments {
- text := JoinFilesToString(files)
18
+ text := JoinFilesToString(files)
13
19
PrintWithScanner(text)
14
20
return
21
βgo.mod
@@ -1,3 +1,9 @@
module github.com/UltiRequiem/chigo
go 1.17
+require (
+ github.com/mattn/go-colorable v0.1.11 // indirect
+ github.com/mattn/go-isatty v0.0.14 // indirect
+ golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6 // indirect
0 commit comments