Documentation
¶
Overview ¶
Package codemode reads the JavaScript Codex sends to its "exec" tool in code mode and says in plain words what the script does. There is no JavaScript engine here: a small scanner finds the tools.<name>(...) calls and reads the literal arguments it can; anything it cannot read is left out of the summary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Call ¶
Call is one tools.<Name>(Arg) call found in a script. Arg is a string, an []any, an *Object, or nil when the argument is not a literal.
type Description ¶
type Description struct {
Tool string
Summary string
// Images is set when the script draws pictures.
Images *ImageCall
// Commands are the shell commands the script runs, whole, in order: what a delivery or a page it opened is read
// from, past the summary's first line.
Commands []string
}
Description is what one script does: the tool to show it under and a one-line summary.