status

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package status implements the `supermodel status` command, which prints the current authentication state, config path, API endpoint, and local cache inventory.

This is a vertical slice. It must not import any other slice package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(_ context.Context, opts Options) error

Run prints the current Supermodel status.

Types

type Options

type Options struct {
	Output string // "human" | "json"
}

Options configures the status command.

type Report

type Report struct {
	Version        string    `json:"version"`
	Authed         bool      `json:"authenticated"`
	APIBase        string    `json:"api_base"`
	ConfigPath     string    `json:"config_path"`
	CacheDir       string    `json:"cache_dir"`
	CacheCount     int       `json:"cached_analyses"`
	CacheSizeBytes int64     `json:"cache_size_bytes"`
	LastAnalysis   time.Time `json:"last_analysis,omitempty"`
}

Report holds all status information.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL