class Copilot
File watcher and CLI entrypoint.
index
members
-
copilot.T
– current tick -
copilot:open(file)
– change the running script. -
copilot:require(name)
– require a module. -
copilot:tick()
– poll for changes and tick. -
copilot:poll()
– poll all loaded modules for changes.
static functions
-
Copilot(file)
– 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.
static functions
-
– create a new Copilot.
parameters:
- name/path of the alive file to watch and execute