Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJQ ¶
func GetJQ() string
GetJQ returns the jq expression configured via --jq, or empty string when the user did not opt in. Commands that produce JSON output should pass this through ApplyJQ before rendering so the filter is honored uniformly.
func GetOutputFormat ¶
func GetProfile ¶
func GetProfile() string
Types ¶
type CheckResult ¶
type CheckResult struct {
Name string `json:"name"`
Status CheckStatus `json:"status"`
Message string `json:"message"`
Remediation string `json:"remediation,omitempty"`
LatencyMS int64 `json:"latencyMs,omitempty"`
// contains filtered or unexported fields
}
type CheckStatus ¶
type CheckStatus string
const ( StatusOK CheckStatus = "ok" StatusWarn CheckStatus = "warn" StatusFail CheckStatus = "fail" )
type Doctor ¶
type Doctor struct {
// contains filtered or unexported fields
}
func (*Doctor) Run ¶
func (doctor *Doctor) Run() *DoctorReport
type DoctorReport ¶
type UpgradeOutcome ¶
type UpgradeOutcome int
UpgradeOutcome enumerates the conclusions runUpgrade can reach about the installed binary versus the latest release. Used by tests to assert branching without rendering full output.
const ( UpgradeOutcomeUnknown UpgradeOutcome = iota UpgradeOutcomeUpToDate UpgradeOutcomeAvailable UpgradeOutcomeDevBuild UpgradeOutcomeNoReleaseInfo )
Source Files
¶
- api.go
- campaigns.go
- client.go
- commands_cmd.go
- commands_register.go
- completion.go
- config_cmd.go
- contacts.go
- docs.go
- doctor.go
- init.go
- keys.go
- listen.go
- login.go
- logout.go
- logs.go
- manpages.go
- mcp.go
- numbers.go
- oauth_nudge.go
- org.go
- plugins_register.go
- profile.go
- root.go
- send.go
- settings_cmd.go
- status.go
- telemetry.go
- templates.go
- upgrade.go
- whoami.go
Click to show internal directories.
Click to hide internal directories.