Add status command
This commit is contained in:
		
							parent
							
								
									2b4c6d3318
								
							
						
					
					
						commit
						e26879425f
					
				
					 9 changed files with 589 additions and 10 deletions
				
			
		|  | @ -39,7 +39,7 @@ func (co ConsoleOutput) InfoFMsg(format string, a ...interface{}) { | |||
| func (co ConsoleOutput) UnchangedStatusF(format string, a ...interface{}) { | ||||
| 	msg := fmt.Sprintf(format, a...) | ||||
| 	if co.Color { | ||||
| 		msg = fmt.Sprintf("%v%v", colorGreen, msg) | ||||
| 		msg = fmt.Sprintf("%v%v%v", colorGreen, msg, colorReset) | ||||
| 	} | ||||
| 	fmt.Println(msg) | ||||
| } | ||||
|  | @ -47,7 +47,7 @@ func (co ConsoleOutput) UnchangedStatusF(format string, a ...interface{}) { | |||
| func (co ConsoleOutput) ChangedStatusF(format string, a ...interface{}) { | ||||
| 	msg := fmt.Sprintf(format, a...) | ||||
| 	if co.Color { | ||||
| 		msg = fmt.Sprintf("%v%v", colorYellow, msg) | ||||
| 		msg = fmt.Sprintf("%v%v%v", colorYellow, msg, colorReset) | ||||
| 	} | ||||
| 	fmt.Println(msg) | ||||
| } | ||||
|  | @ -55,7 +55,7 @@ func (co ConsoleOutput) ChangedStatusF(format string, a ...interface{}) { | |||
| func (co ConsoleOutput) ErrorStatusF(format string, a ...interface{}) { | ||||
| 	msg := fmt.Sprintf(format, a...) | ||||
| 	if co.Color { | ||||
| 		msg = fmt.Sprintf("%v%v", colorRed, msg) | ||||
| 		msg = fmt.Sprintf("%v%v%v", colorRed, msg, colorReset) | ||||
| 	} | ||||
| 	fmt.Println(msg) | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue