Skip to content

Commit 91c4e7f

Browse files
author
sharma1612harshit
committed
remove info color from read output
1 parent 6bbf2b8 commit 91c4e7f

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

logger/logger.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ func Info(message string) {
4343
fmt.Printf(InfoColor, message)
4444
}
4545

46+
// logs stdout
47+
func Output(message string) {
48+
fmt.Printf(message)
49+
}
50+
4651
// logs help context as a warning
4752
func Help() {
4853
Warning(HelpText)

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func main() {
5555
logger.Critical(err.Error())
5656
}
5757

58-
logger.Info(string(Decrypted))
58+
logger.Output(string(Decrypted))
5959

6060
logger.Critical(err.Error())
6161
}
@@ -79,6 +79,6 @@ func main() {
7979
logger.Critical(err.Error())
8080
}
8181

82-
logger.Info(string(Decrypted))
82+
logger.Output(string(Decrypted))
8383
}
8484
}

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.1.0
1+
v1.2.0

0 commit comments

Comments
 (0)