Skip to main content

Logic

Compiling Logic

CommandDescription
compile <name>Compile from coco.nut in current directory
compile <name> from coco(path/file.coco)Compile specific .coco file
compile <name> from manifest(path/file.yaml)Load manifest directly
>>> compile ContextFlipper
logic 'ContextFlipper' [0x1279...fd64] compiled with 1055 FUEL

Viewing Logics

CommandDescription
logicsList all loaded logics
get <name>Show logic details (endpoints, ID, state)
>>> logics
[0] ContextFlipper [0x1279...fd64]

>>> get ContextFlipper
===== [ ContextFlipper ] [Address: 0x1279...fd64]
[Edition: 0] [Engine: PISA] [Ready: true]
===== [Endpoints]
[0] invoke Flip() -> ()
[1] enlist Init() -> ()
[2] invoke Mode() -> (value bool)
[3] invoke Set(value bool) -> ()
=====

Removing Logics

CommandDescription
wipe logicsRemove all logics
wipe <name>Remove specific logic