commands

package
v0.0.0-...-e0e0083 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupList

func BackupList(c *client.Client, limit int, jsonOutput bool) error

BackupList lists recent backup artifacts.

func BackupRestore

func BackupRestore(c *client.Client, id string, jsonOutput bool) error

BackupRestore restores a backup artifact by id.

func BatchExec

func BatchExec(c *client.Client, commands []map[string]interface{}, jsonOutput bool) error

func BatchParSet

func BatchParSet(c *client.Client, sets []map[string]interface{}, jsonOutput bool) error

func ChopChannels

func ChopChannels(c *client.Client, path string, start, count int, jsonOutput bool) error

func ChopInfo

func ChopInfo(c *client.Client, path string, jsonOutput bool) error

func ChopSample

func ChopSample(c *client.Client, path, channel string, index int, jsonOutput bool) error

func Connect

func Connect(c *client.Client, src, dst string, srcIndex, dstIndex int, jsonOutput bool) error

Connect wires two operators together.

func Context

func Context(c *client.Client, depth int, jsonOutput bool) error

func CookNetwork

func CookNetwork(c *client.Client, path string, jsonOutput bool) error

func CookNode

func CookNode(c *client.Client, path string, jsonOutput bool) error

func DatRead

func DatRead(c *client.Client, path string, jsonOutput bool) error

DatRead reads DAT content.

func DatWrite

func DatWrite(c *client.Client, path, content, filePath string, jsonOutput bool) error

DatWrite writes content to a DAT.

func Describe

func Describe(c *client.Client, path string, jsonOutput bool) error

Describe generates an AI-friendly description of a TD network.

func DiffFiles

func DiffFiles(file1, file2 string, jsonOutput bool) error

DiffFiles compares two network snapshot files.

func DiffLive

func DiffLive(c *client.Client, snapshotFile string, path string, jsonOutput bool) error

DiffLive compares current TD state against a saved snapshot.

func Disconnect

func Disconnect(c *client.Client, src, dst string, jsonOutput bool) error

Disconnect removes a wire between two operators.

func Doctor

func Doctor(version string, portOverride int, projectPath string, jsonOutput bool) error

Doctor runs diagnostic checks and reports setup health. portOverride and projectPath correspond to --port and --project global flags.

func Exec

func Exec(c *client.Client, code string, filePath string, jsonOutput bool, verifyPath string, screenshotPath string) error

Exec executes Python code in TouchDesigner.

func HarnessApply

func HarnessApply(c *client.Client, payload map[string]interface{}, jsonOutput bool) error

func HarnessCapabilities

func HarnessCapabilities(c *client.Client, payload map[string]interface{}, jsonOutput bool) error

func HarnessHistory

func HarnessHistory(c *client.Client, payload map[string]interface{}, jsonOutput bool) error

func HarnessObserve

func HarnessObserve(c *client.Client, payload map[string]interface{}, jsonOutput bool) error

func HarnessRollback

func HarnessRollback(c *client.Client, payload map[string]interface{}, jsonOutput bool) error

func HarnessVerify

func HarnessVerify(c *client.Client, payload map[string]interface{}, jsonOutput bool) error

func Init

func Init(jsonOutput bool, port int, timeoutMs int) error

func Instances

func Instances(instances []protocol.Instance, jsonOutput bool)

Instances lists all running TD instances.

func LogsList

func LogsList(c *client.Client, limit int, jsonOutput bool) error

LogsList lists recent audit log events in reverse chronological order.

func LogsTail

func LogsTail(c *client.Client, limit int, jsonOutput bool) error

LogsTail reads recent audit log events in chronological order.

func MediaExport

func MediaExport(c *client.Client, path, outputFile string, jsonOutput bool) error

func MediaInfo

func MediaInfo(c *client.Client, path string, jsonOutput bool) error

func MediaRecord

func MediaRecord(c *client.Client, path string, start, end float64, jsonOutput bool) error

func MediaSnapshot

func MediaSnapshot(c *client.Client, path, outputFile string, jsonOutput bool) error

func NetworkExport

func NetworkExport(c *client.Client, path string, outputFile string, depth int, includeDefaults bool, jsonOutput bool) error

NetworkExport exports the network structure as a JSON snapshot.

func NetworkImport

func NetworkImport(c *client.Client, filePath string, targetPath string, jsonOutput bool) error

NetworkImport recreates a network from a JSON snapshot file.

func OpsClone

func OpsClone(c *client.Client, src, parent, name string, nodeX, nodeY int, jsonOutput bool) error

func OpsCopy

func OpsCopy(c *client.Client, src, parent, name string, nodeX, nodeY int, jsonOutput bool) error

func OpsCreate

func OpsCreate(c *client.Client, opType, parent, name string, nodeX, nodeY int, jsonOutput bool) error

OpsCreate creates a new operator.

func OpsDelete

func OpsDelete(c *client.Client, path string, jsonOutput bool) error

OpsDelete deletes an operator.

func OpsInfo

func OpsInfo(c *client.Client, path string, jsonOutput bool) error

OpsInfo gets detailed info about an operator.

func OpsList

func OpsList(c *client.Client, path string, depth int, family string, jsonOutput bool) error

OpsList lists operators at a path.

func OpsMove

func OpsMove(c *client.Client, src, parent string, jsonOutput bool) error

func OpsRename

func OpsRename(c *client.Client, path, newName string, jsonOutput bool) error

func OpsSearch

func OpsSearch(c *client.Client, parent, pattern, family string, depth int, jsonOutput bool) error

func ParExport

func ParExport(c *client.Client, path string, jsonOutput bool) error

func ParExpr

func ParExpr(c *client.Client, path, name, expression string, jsonOutput bool) error

func ParGet

func ParGet(c *client.Client, path string, names []string, jsonOutput bool) error

ParGet gets parameters of an operator.

func ParImport

func ParImport(c *client.Client, path string, params []interface{}, jsonOutput bool) error

func ParPulse

func ParPulse(c *client.Client, path, name string, jsonOutput bool) error

func ParReset

func ParReset(c *client.Client, path string, names []string, jsonOutput bool) error

func ParSet

func ParSet(c *client.Client, path string, params map[string]interface{}, jsonOutput bool) error

ParSet sets parameters on an operator.

func ParseTableCoords

func ParseTableCoords(args []string) (row, col int, value string)

func PopAV

func PopAV(c *client.Client, templateKey, root, name string, jsonOutput bool) error

func PopAttributes

func PopAttributes(c *client.Client, path string, jsonOutput bool) error

func PopBounds

func PopBounds(c *client.Client, path string, jsonOutput bool) error

func PopInfo

func PopInfo(c *client.Client, path string, jsonOutput bool) error

func PopPoints

func PopPoints(c *client.Client, path, attr string, start, count int, jsonOutput bool) error

func PopPrims

func PopPrims(c *client.Client, path, attr string, start, count int, jsonOutput bool) error

func PopSave

func PopSave(c *client.Client, path, filepath string, jsonOutput bool) error

func PopVerts

func PopVerts(c *client.Client, path, attr string, start, count int, jsonOutput bool) error

func ProjectInfo

func ProjectInfo(c *client.Client, jsonOutput bool) error

ProjectInfo displays project metadata.

func ProjectSave

func ProjectSave(c *client.Client, path string, jsonOutput bool) error

ProjectSave saves the project.

func Screenshot

func Screenshot(c *client.Client, path, outputFile string, jsonOutput bool) error

Screenshot captures a TOP output as PNG.

func ShadersApply

func ShadersApply(c *client.Client, name string, targetPath string, jsonOutput bool) error

ShadersApply sends a shader template to TD and applies it to a GLSL TOP.

func ShadersGet

func ShadersGet(name string, jsonOutput bool) error

ShadersGet prints a specific shader template (offline, no TD needed).

func ShadersList

func ShadersList(category string, jsonOutput bool) error

ShadersList lists available shader templates (offline, no TD needed).

func SopAttribs

func SopAttribs(c *client.Client, path string, jsonOutput bool) error

func SopInfo

func SopInfo(c *client.Client, path string, jsonOutput bool) error

func SopPoints

func SopPoints(c *client.Client, path string, start, limit int, jsonOutput bool) error

func Status

func Status(c *client.Client, jsonOutput bool) error

Status checks connection to a TD instance and prints info.

func TableAppend

func TableAppend(c *client.Client, path, mode string, values []string, jsonOutput bool) error

func TableCell

func TableCell(c *client.Client, path string, row, col int, value string, jsonOutput bool) error

func TableDelete

func TableDelete(c *client.Client, path, mode string, index int, jsonOutput bool) error

func TableRows

func TableRows(c *client.Client, path string, start, end int, jsonOutput bool) error

func TimelineInfo

func TimelineInfo(c *client.Client, jsonOutput bool) error

func TimelinePause

func TimelinePause(c *client.Client, jsonOutput bool) error

func TimelinePlay

func TimelinePlay(c *client.Client, jsonOutput bool) error

func TimelineRange

func TimelineRange(c *client.Client, start, end float64, jsonOutput bool) error

func TimelineRate

func TimelineRate(c *client.Client, rate float64, jsonOutput bool) error

func TimelineSeek

func TimelineSeek(c *client.Client, time float64, jsonOutput bool) error

func ToolsList

func ToolsList(c *client.Client, jsonOutput bool) error

ToolsList queries the TD server for all registered tool schemas.

func ToxExport

func ToxExport(c *client.Client, compPath, outputPath string, jsonOutput bool) error

ToxExport exports a COMP as a .tox file.

func ToxImport

func ToxImport(c *client.Client, toxPath, parentPath, name string, jsonOutput bool) error

ToxImport imports a .tox file into a parent COMP.

func UiNavigate

func UiNavigate(c *client.Client, path string, jsonOutput bool) error

func UiPulse

func UiPulse(c *client.Client, path, name string, jsonOutput bool) error

func UiSelect

func UiSelect(c *client.Client, path string, jsonOutput bool) error

func Update

func Update(currentVersion string, jsonOutput bool) error

Update checks GitHub Releases for a newer version and performs a transactional binary replacement.

func Watch

func Watch(c *client.Client, path string, interval time.Duration, jsonOutput bool) error

Watch runs a continuous monitoring loop.

Types

type GitHubAsset

type GitHubAsset struct {
	Name               string `json:"name"`
	Size               int64  `json:"size"`
	BrowserDownloadURL string `json:"browser_download_url"`
}

GitHubAsset is a release asset.

type GitHubRelease

type GitHubRelease struct {
	TagName string        `json:"tag_name"`
	Assets  []GitHubAsset `json:"assets"`
}

GitHubRelease is the subset of GitHub's release API we need.

type ToolParameter

type ToolParameter struct {
	Name        string `json:"name"`
	Type        string `json:"type"`
	Required    bool   `json:"required"`
	Description string `json:"description"`
}

ToolParameter describes a parameter for a tool.

type ToolSchema

type ToolSchema struct {
	Name        string          `json:"name"`
	Route       string          `json:"route"`
	Description string          `json:"description"`
	Parameters  []ToolParameter `json:"parameters"`
}

ToolSchema describes a single tool's interface for AI agent discovery.

Jump to

Keyboard shortcuts

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