Documentation
¶
Overview ¶
Package cmd provides CLI commands
Index ¶
- func DetermineHealthStatus(providers map[string]ProviderHealthStatus) string
- func Execute()
- func GetConfig() *config.Config
- func IsQuietMode() bool
- func NewHealthHandler(health *HealthResponse) http.Handler
- type AnalyzeReport
- type AuthLogoutReceipt
- type AuthShowDetails
- type AuthSnapshot
- type AuthStatusRow
- type CLIError
- type DayData
- type HealthResponse
- type InputMode
- type Model
- type PriorityAnalysis
- type PriorityData
- type ProviderHealthStatus
- type ProviderInfo
- type ProviderListRow
- type QuadrantAnalysis
- type QuadrantData
- type SchedulerHealthStatus
- type SortType
- type SummaryData
- type TimeAnalysis
- type TimeData
- type TokenHealthStatus
- type TrendAnalysis
- type ViewType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetermineHealthStatus ¶ added in v1.0.4
func DetermineHealthStatus(providers map[string]ProviderHealthStatus) string
func IsQuietMode ¶ added in v1.0.4
func IsQuietMode() bool
IsQuietMode returns true when --quiet is explicitly set. Scripts should request machine output with --json/--agent instead of relying on pipe detection.
func NewHealthHandler ¶ added in v1.0.4
func NewHealthHandler(health *HealthResponse) http.Handler
Types ¶
type AnalyzeReport ¶ added in v1.0.4
type AnalyzeReport struct {
Total int `json:"total"`
Active int `json:"active"`
Completed int `json:"completed"`
Q1 int `json:"q1"`
Q2 int `json:"q2"`
Q3 int `json:"q3"`
Q4 int `json:"q4"`
Urgent int `json:"urgent"`
High int `json:"high"`
Medium int `json:"medium"`
Low int `json:"low"`
Overdue int `json:"overdue"`
TodayTasks int `json:"today_tasks"`
ThisWeek int `json:"this_week"`
Generated string `json:"generated"`
}
AnalyzeReport comprehensive report (cmd-specific JSON contract with flat fields)
type AuthLogoutReceipt ¶ added in v1.0.4
type AuthShowDetails ¶ added in v1.0.4
type AuthShowDetails struct {
Provider string `json:"provider"`
DisplayName string `json:"display_name"`
Alias string `json:"alias"`
TokenPath string `json:"token_path"`
Status string `json:"status"`
Authenticated bool `json:"authenticated"`
Valid string `json:"valid"`
ExpiresAt string `json:"expires_at"`
NextAction string `json:"next_action"`
}
type AuthSnapshot ¶
type AuthStatusRow ¶ added in v1.0.4
type AuthStatusRow struct {
Provider string `json:"provider"`
DisplayName string `json:"display_name"`
Alias string `json:"alias"`
Status string `json:"status"`
Authenticated bool `json:"authenticated"`
Valid string `json:"valid"`
ExpiresAt string `json:"expires_at"`
NextAction string `json:"next_action"`
}
type HealthResponse ¶ added in v1.0.4
type HealthResponse struct {
StartTime time.Time `json:"start_time"`
Status string `json:"status"`
Live bool `json:"live"`
Ready bool `json:"ready"`
TokenManagerRunning bool `json:"token_manager_running"`
Providers map[string]ProviderHealthStatus `json:"providers"`
TokenStatus map[string]TokenHealthStatus `json:"token_status"`
Scheduler *SchedulerHealthStatus `json:"scheduler,omitempty"`
Uptime string `json:"uptime"`
}
type PriorityAnalysis ¶
type PriorityAnalysis = analyze.PriorityAnalysis
Type aliases for the analyze package DTOs. The cmd layer uses these aliases for renderer compatibility while delegating computation to internal/analyze.
type PriorityData ¶
type PriorityData = analyze.PriorityData
Type aliases for the analyze package DTOs. The cmd layer uses these aliases for renderer compatibility while delegating computation to internal/analyze.
type ProviderHealthStatus ¶ added in v1.0.4
type ProviderInfo ¶
type ProviderInfo struct {
Name string
ShortName string
DisplayName string
Description string
AuthType string
Enabled bool
Connected bool
Capabilities []string
}
ProviderInfo Provider information
type ProviderListRow ¶ added in v1.0.4
type QuadrantAnalysis ¶
type QuadrantAnalysis = analyze.QuadrantAnalysis
Type aliases for the analyze package DTOs. The cmd layer uses these aliases for renderer compatibility while delegating computation to internal/analyze.
type QuadrantData ¶
type QuadrantData = analyze.QuadrantData
Type aliases for the analyze package DTOs. The cmd layer uses these aliases for renderer compatibility while delegating computation to internal/analyze.
type SchedulerHealthStatus ¶ added in v1.0.4
type SchedulerHealthStatus struct {
Running bool `json:"running"`
Interval string `json:"interval,omitempty"`
LastRunTime time.Time `json:"last_run_time,omitempty"`
NextRunTime time.Time `json:"next_run_time,omitempty"`
LastRunStatus string `json:"last_run_status,omitempty"`
TotalRuns int `json:"total_runs"`
SuccessRuns int `json:"success_runs"`
FailedRuns int `json:"failed_runs"`
}
type SummaryData ¶
type SummaryData = analyze.SummaryData
Type aliases for the analyze package DTOs. The cmd layer uses these aliases for renderer compatibility while delegating computation to internal/analyze.
type TimeAnalysis ¶
type TimeAnalysis = analyze.TimeAnalysis
Type aliases for the analyze package DTOs. The cmd layer uses these aliases for renderer compatibility while delegating computation to internal/analyze.
type TimeData ¶
Type aliases for the analyze package DTOs. The cmd layer uses these aliases for renderer compatibility while delegating computation to internal/analyze.
type TokenHealthStatus ¶ added in v1.0.4
type TrendAnalysis ¶
type TrendAnalysis struct {
DailyCompletions []DayData `json:"daily_completions"`
WeeklyAverage float64 `json:"weekly_average"`
TotalCompleted int `json:"total_completed"`
}
TrendAnalysis trend analysis results (cmd-specific JSON contract)