cmd

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Functions

func Execute

func Execute(ctx context.Context) error

Types

type ResponsePrinter added in v0.0.18

type ResponsePrinter struct {
	Quiet       bool
	CompactJSON bool
}

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.

type SendFunc added in v0.0.15

type SendFunc func(command string, params interface{}) (*client.CommandResponse, error)

SendFunc is the function signature for sending a command to Unity. Injected into each command function so they can be tested without a real Unity connection.

Jump to

Keyboard shortcuts

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