diff options
| author | Kaushal Subedi | 2015-10-26 21:38:09 -0600 | 
|---|---|---|
| committer | Kaushal Subedi | 2015-10-26 21:38:09 -0600 | 
| commit | 25ac3bddcde2141250843115606d008a50d82379 (patch) | |
| tree | 316de316f5842546312a70ec0236e9c6c9bf687f /native.go | |
| parent | 2f9e0376476ccd8e93cf3338bd9e9765445282ad (diff) | |
| download | gomove-25ac3bddcde2141250843115606d008a50d82379.tar.bz2 | |
updated colors on native processing
Diffstat (limited to 'native.go')
| -rw-r--r-- | native.go | 11 | 
1 files changed, 7 insertions, 4 deletions
| @@ -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", | 
