cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

func SetVersion

func SetVersion(v string)

Types

type BatchResult added in v0.2.0

type BatchResult struct {
	Steps   []BatchStep  `json:"steps"`
	Final   any          `json:"final,omitempty"`
	FinalOp string       `json:"final_op,omitempty"`
	Summary BatchSummary `json:"summary"`
}

BatchResult is the final JSON returned by `ghostchrome batch`.

type BatchStep added in v0.2.0

type BatchStep struct {
	Index  int    `json:"step"`
	Cmd    string `json:"cmd"`
	Args   string `json:"args,omitempty"`
	OK     bool   `json:"ok"`
	TimeMs int64  `json:"ms"`
	Error  string `json:"error,omitempty"`
}

BatchStep captures one line of execution in the script.

type BatchSummary added in v0.2.0

type BatchSummary struct {
	Total  int   `json:"total"`
	Ok     int   `json:"ok"`
	Failed int   `json:"failed"`
	TimeMs int64 `json:"total_ms"`
}

BatchSummary gives the agent a glanceable overview.

Jump to

Keyboard shortcuts

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