Tomacco

Docs Operation reference workspace operations

workspace operations#

5 operations. Generated from assets/operations.json; all areas.

On this page (5)

workspace.list#

Read workspaces

List saved project and device contexts.

Annotations: read-only, idempotent, open world.

Takes no arguments.

tomaccoctl call workspace.list

workspace.save#

Save workspace

Save a named project, target and optional native test scenario without modifying project sources.

Annotations: writes, idempotent, open world.

ArgumentTypeRequiredDefaultDetails
namestringyesmatching [A-Za-z0-9_-]{1,64}
pathstringyes
platformstring"android"one of android, ios, web, linux
devicestring""
bundle_idstring""
scenariostring""
tomaccoctl call workspace.save '{"name":"<name>","path":"<path>"}'

workspace.remove#

Remove workspace

Remove a saved context; project files remain intact.

Annotations: destructive, idempotent, open world.

ArgumentTypeRequiredDefaultDetails
namestringyes
tomaccoctl call workspace.remove '{"name":"<name>"}'

workspace.context#

Load agent context

Read project capabilities, tools, devices, recent jobs and executable recipes in one call.

Annotations: read-only, idempotent, open world.

ArgumentTypeRequiredDefaultDetails
namestringyes
tomaccoctl call workspace.context '{"name":"<name>"}'

workspace.execute#

Run workspace

Build, test, lint, run or execute the saved UI scenario using the shared native APIs.

Annotations: writes, not idempotent, open world.

ArgumentTypeRequiredDefaultDetails
namestringyes
actionstringyesone of build, test, lint, run, ui_test
configurationstring"debug"one of debug, release
tomaccoctl call workspace.execute '{"name":"<name>","action":"build"}'

View this page as Markdown on GitHub