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

Commit cd41254

Browse files
committed
Commit for Release 1.0.2
1 parent 18ce227 commit cd41254

File tree

3 files changed

+54
-156
lines changed

3 files changed

+54
-156
lines changed

.idea/workspace.xml

+29-137
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploywp/uxPrint.go

+24-18
Original file line numberDiff line numberDiff line change
@@ -262,26 +262,32 @@ func (up *UxPrint) PrintResponse(state *ux.State) {
262262
break
263263
}
264264
switch {
265-
case state.IsOk():
266-
format := state.GetOk().Error()
267-
if format == "" {
268-
format = "OK"
269-
}
270-
ux.PrintfGreen(format)
265+
case state.ExitCode > 0:
266+
ux.PrintfRed("FAILED")
271267

272-
case state.IsWarning():
273-
format := state.GetWarning().Error()
274-
if format == "" {
275-
format = "WARNING"
276-
}
277-
ux.PrintfYellow(format)
268+
case state.IsError():
269+
format := state.GetError().Error()
270+
if format == "" {
271+
format = "ERROR"
272+
}
273+
ux.PrintfRed(format)
278274

279-
case state.IsError():
280-
format := state.GetError().Error()
281-
if format == "" {
282-
format = "ERROR"
283-
}
284-
ux.PrintfRed(format)
275+
case state.IsWarning():
276+
format := state.GetWarning().Error()
277+
if format == "" {
278+
format = "WARNING"
279+
}
280+
ux.PrintfYellow(format)
281+
282+
case state.IsOk():
283+
format := state.GetOk().Error()
284+
if format == "" {
285+
format = "OK"
286+
}
287+
ux.PrintfGreen(format)
288+
289+
default:
290+
ux.PrintfGreen("OK")
285291
}
286292
up.alreadyPrinted = true
287293
}

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
//go:generate buildtool pkgreflect deploywp
1010

1111
func init() {
12-
_ = ux.Open("Gearbox: ")
12+
_, _ = ux.Open("deploywp", true)
1313
}
1414

1515
func main() {

0 commit comments

Comments
 (0)