cli

package
v0.1.0-rc.11 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDoctorCommand

func NewDoctorCommand() *cli.Command

NewDoctorCommand returns the `tales doctor` subcommand, which prints the embedded driver state, the apple-driver cache contents, and host Xcode / simctl diagnostics.

func NewTestCommand

func NewTestCommand() *cli.Command

NewTestCommand returns test command.

func NewValidateCommand

func NewValidateCommand() *cli.Command

NewValidateCommand returns validation command.

Types

type BrowserInfo

type BrowserInfo struct {
	Path  string `json:"path"`
	Error string `json:"error,omitempty"`
}

BrowserInfo summarizes the host's Chrome / Chromium availability for the browser provider. Path is empty when no executable was found.

type CacheInfo

type CacheInfo struct {
	Base    string                      `json:"base"`
	Entries []embeddeddriver.CacheEntry `json:"entries"`
	Error   string                      `json:"error,omitempty"`
}

CacheInfo summarizes the apple-driver cache directory.

type EmbeddedInfo

type EmbeddedInfo struct {
	SourceHash      string `json:"source_hash"`
	SourceHashShort string `json:"source_hash_short"`
	Files           int    `json:"files"`
	Bytes           int64  `json:"bytes"`
	Error           string `json:"error,omitempty"`
}

EmbeddedInfo summarizes the embedded driver source.

type SimctlDevice

type SimctlDevice struct {
	UDID        string `json:"udid"`
	Name        string `json:"name"`
	Runtime     string `json:"runtime"`
	State       string `json:"state"`
	IsAvailable bool   `json:"is_available"`
}

SimctlDevice mirrors the subset of `simctl list -j devices` Tales uses.

type SimctlInfo

type SimctlInfo struct {
	Available bool            `json:"available"`
	Runtimes  []SimctlRuntime `json:"runtimes"`
	Devices   []SimctlDevice  `json:"devices"`
	Error     string          `json:"error,omitempty"`
}

SimctlInfo summarizes available simulator runtimes and devices.

type SimctlRuntime

type SimctlRuntime struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	IsAvailable bool   `json:"is_available"`
}

SimctlRuntime mirrors the subset of `simctl list -j runtimes` Tales uses.

type Snapshot

type Snapshot struct {
	Tales          TalesInfo    `json:"tales"`
	EmbeddedDriver EmbeddedInfo `json:"embedded_driver"`
	Cache          CacheInfo    `json:"cache"`
	Xcode          XcodeInfo    `json:"xcode"`
	Simctl         SimctlInfo   `json:"simctl"`
	Browser        BrowserInfo  `json:"browser"`
}

Snapshot is the structured payload `tales doctor` produces. Field names are stable and consumable from CI scripts via --json.

type TalesInfo

type TalesInfo struct {
	Version   string `json:"version"`
	GoVersion string `json:"go_version"`
	BuildDate string `json:"build_date,omitempty"`
	Platform  string `json:"platform"`
}

TalesInfo describes the running tales binary.

type XcodeInfo

type XcodeInfo struct {
	Version      string `json:"version"`
	SDKVersion   string `json:"sdk_version"`
	DeveloperDir string `json:"developer_dir"`
	MacOSMajor   string `json:"macos_major"`
}

XcodeInfo summarizes host Xcode state.

Jump to

Keyboard shortcuts

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