Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCommandFailed = errors.New("command failed")
ErrCommandFailed signals that a tool command returned success=false. The compact JSON error envelope has already been printed to stderr, so main() exits non-zero on this sentinel without printing a duplicate error line.
View Source
var Version = "dev"
Functions ¶
Types ¶
type ResponsePrinter ¶ added in v0.0.18
ResponsePrinter holds output-configuration state so that print logic can be tested without mutating package-level flag variables.
func (*ResponsePrinter) Print ¶ added in v0.0.18
func (rp *ResponsePrinter) Print(resp *client.CommandResponse, category string)
type SendBatchFunc ¶ added in v0.0.15
type SendBatchFunc func(ctx context.Context, inst *client.Instance, req client.BatchCommandRequest, timeoutMs int) (*client.BatchCommandResponse, error)
SendBatchFunc is the function signature for sending a batch command to Unity. Injected so batchCmd can be tested without a real Unity connection.
Click to show internal directories.
Click to hide internal directories.