Update pkg/doctor/doctor.go

Co-authored-by: John Gibb <johngibb@gmail.com>
This commit is contained in:
MrBeanDev 2026-02-15 14:26:05 +05:30 committed by GitHub
parent 63226be170
commit 03aeef58de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,25 +22,19 @@ type Check struct {
}
// Status represents the status of a check
type Status int
type Status string
const (
StatusOK Status = iota
StatusWarning
StatusError
StatusOK Status = "✅"
StatusWarning Status = "⚠️"
StatusError Status = "❌"
)
func (s Status) String() string {
switch s {
case StatusOK:
return "✅"
case StatusWarning:
return "⚠️"
case StatusError:
return "❌"
default:
if s == "" {
return "❓"
}
return string(s)
}
// Doctor runs all diagnostic checks