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' [0xbe8f...47ee] compiled with 345 FUEL

Viewing Logics​

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

>>> get ContextFlipper
===== [ ContextFlipper ] [Address: 0xbe8f...47ee]
[Edition: 0] [Logic ID: 0x0400...47ee]
[Engine: PISA] [Manifest: e83f...defc]
[Ready: true] [Persistent: false] [Ephemeral: false]
===== [Endpoints]
[0] invoke Flip() -> ()
[1] invoke Mode() -> (value bool)
[2] invoke Set(value bool) -> ()
=====

Removing Logics​

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