Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildIssueURL ¶
BuildIssueURL constructs a pre-filled GitHub issue URL.
func BuildPanicIssueURL ¶
BuildPanicIssueURL constructs a GitHub issue URL pre-filled with crash details.
func FormatText ¶
FormatText formats the diagnostic info as a human-readable string.
func HandlePanic ¶
HandlePanic prints a friendly crash message and a pre-filled GitHub issue URL. Call this from a deferred recover() in main.
Types ¶
type Info ¶
type Info struct {
CLIVersion string `json:"cli_version"`
GoVersion string `json:"go_version"`
OS string `json:"os"`
Arch string `json:"arch"`
ConfigPath string `json:"config_path"`
ConfigFound bool `json:"config_found"`
Domain string `json:"domain,omitempty"`
APIStatus string `json:"api_status,omitempty"`
}
Info holds the diagnostic information collected by the bug-report command.
Click to show internal directories.
Click to hide internal directories.