aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaushal Subedi2015-10-26 21:38:09 -0600
committerKaushal Subedi2015-10-26 21:38:09 -0600
commit25ac3bddcde2141250843115606d008a50d82379 (patch)
tree316de316f5842546312a70ec0236e9c6c9bf687f
parent2f9e0376476ccd8e93cf3338bd9e9765445282ad (diff)
downloadgomove-25ac3bddcde2141250843115606d008a50d82379.tar.bz2
updated colors on native processing
-rw-r--r--native.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/native.go b/native.go
index 04adc58..f9362a0 100644
--- a/native.go
+++ b/native.go
@@ -15,11 +15,14 @@ func ProcessFileNative(filePath string, from string, to string) {
//Colors to be used on the console
red := ansi.ColorCode("red+bh")
white := ansi.ColorCode("white+bh")
- greenUnderline := ansi.ColorCode("green+buh")
+ green := ansi.ColorCode("green+bh")
+ blue := ansi.ColorCode("blue+bh")
blackOnWhite := ansi.ColorCode("black+b:white+h")
//Reset the color
reset := ansi.ColorCode("reset")
+ fmt.Pritnln(blackOnWhite+"Processing file", filePath, reset)
+
// Open file to read
fileContent, err := ioutil.ReadFile(filePath)
if err != nil {
@@ -71,10 +74,10 @@ func ProcessFileNative(filePath string, from string, to string) {
// Change isImportLine accordingly if import statements are detected
if strings.Contains(bareLine, "import(") {
- fmt.Println(greenUnderline+"Found Multiple Imports Starting On Line", scanLine, reset)
+ fmt.Println(green+"Found Multiple Imports Starting On Line", scanLine, reset)
isImportLine = true
} else if isImportLine && strings.Contains(bareLine, ")") {
- fmt.Println(greenUnderline+"Imports Finish On Line", scanLine, reset)
+ fmt.Println(green+"Imports Finish On Line", scanLine, reset)
isImportLine = false
}
@@ -105,7 +108,7 @@ func ProcessFileNative(filePath string, from string, to string) {
// Only write if changes were made
if numChages > 0 {
- fmt.Println(blackOnWhite+
+ fmt.Println(blue+
"File",
filePath,
"saved after",