posh/pkg/prompt/check/status.go
Kevin Franklin Kim e2ad376b6c initial commit
2023-01-03 15:37:15 +01:00

21 lines
253 B
Go

package check
type Status string
const (
StatusSuccess = "✅"
StatusFailure = "❌"
)
func (s Status) String() string {
return string(s)
}
func StatusFromBool(v bool) Status {
if v {
return StatusSuccess
} else {
return StatusFailure
}
}