Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Commit for Release 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
MickMake committed Jun 30, 2020
1 parent 18ce227 commit cd41254
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 156 deletions.
166 changes: 29 additions & 137 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 24 additions & 18 deletions deploywp/uxPrint.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,26 +262,32 @@ func (up *UxPrint) PrintResponse(state *ux.State) {
break
}
switch {
case state.IsOk():
format := state.GetOk().Error()
if format == "" {
format = "OK"
}
ux.PrintfGreen(format)
case state.ExitCode > 0:
ux.PrintfRed("FAILED")

case state.IsWarning():
format := state.GetWarning().Error()
if format == "" {
format = "WARNING"
}
ux.PrintfYellow(format)
case state.IsError():
format := state.GetError().Error()
if format == "" {
format = "ERROR"
}
ux.PrintfRed(format)

case state.IsError():
format := state.GetError().Error()
if format == "" {
format = "ERROR"
}
ux.PrintfRed(format)
case state.IsWarning():
format := state.GetWarning().Error()
if format == "" {
format = "WARNING"
}
ux.PrintfYellow(format)

case state.IsOk():
format := state.GetOk().Error()
if format == "" {
format = "OK"
}
ux.PrintfGreen(format)

default:
ux.PrintfGreen("OK")
}
up.alreadyPrinted = true
}
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
//go:generate buildtool pkgreflect deploywp

func init() {
_ = ux.Open("Gearbox: ")
_, _ = ux.Open("deploywp", true)
}

func main() {
Expand Down

0 comments on commit cd41254

Please sign in to comment.