diff options
| author | Kaushal Subedi | 2015-10-26 21:41:10 -0600 | 
|---|---|---|
| committer | Kaushal Subedi | 2015-10-26 21:41:10 -0600 | 
| commit | 24efc0991281a84bd32fbf1dab46426a28677883 (patch) | |
| tree | 4a3627effcd343be04a4c1351de557970f5df763 /native.go | |
| parent | fc7b97c219861ee5a9ee660b9a3263ef529b1752 (diff) | |
| download | gomove-24efc0991281a84bd32fbf1dab46426a28677883.tar.bz2 | |
added better text outputs
Diffstat (limited to 'native.go')
| -rw-r--r-- | native.go | 10 | 
1 files changed, 7 insertions, 3 deletions
| @@ -16,7 +16,7 @@ func ProcessFileNative(filePath string, from string, to string) {  	red := ansi.ColorCode("red+bh")  	white := ansi.ColorCode("white+bh")  	green := ansi.ColorCode("green+bh") -	blue := ansi.ColorCode("blue+bh") +	yellow := ansi.ColorCode("yellow+bh")  	blackOnWhite := ansi.ColorCode("black+b:white+h")  	//Reset the color  	reset := ansi.ColorCode("reset") @@ -108,13 +108,17 @@ func ProcessFileNative(filePath string, from string, to string) {  	// Only write if changes were made  	if numChages > 0 { -		fmt.Println(blue+ +		fmt.Println(yellow+  			"File",  			filePath,  			"saved after",  			numChages,  			"changes", -			reset) +			reset, "\n\n")  		ioutil.WriteFile(filePath, []byte(output), os.ModePerm) +	} else { +		fmt.Println(yellow+ +			"No changes to write on this file.", +			reset, "\n\n")  	}  } | 
