Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDoctorCommand ¶
NewDoctorCommand returns the `tales doctor` subcommand, which prints the embedded driver state, the apple-driver cache contents, and host Xcode / simctl diagnostics.
func NewValidateCommand ¶
NewValidateCommand returns validation command.
Types ¶
type BrowserInfo ¶
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.