class Copilot
File watcher and runtime entrypoint.
index
members
-
copilot.T– current tick -
copilot\open(file)– change the running script. -
copilot\require(name, scope)– require a module. -
copilot\tick()– poll for changes and tick. -
copilot\poll()– poll all loaded modules for changes. -
copilot\eval(dirty)– try to re-evaluate in response to module changes.
static functions
-
Copilot\new(args)– create a new Copilot.
details
members
-
– current tick
-
– change the running script.
parameters:
- – require a module.
-
– poll for changes and tick.
-
– poll all loaded modules for changes.
Call eval if there are any, and write changed and newly added modules back to disk.
returns:
- (boolean): ok
- (error): err
- – try to re-evaluate in response to module changes.
static functions
-
– create a new Copilot.
parameters: