aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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",