Documentation ¶
Overview ¶
Package specialcmd handles special commands, that come in two flavors:
- `%<cmd> {...args...}` : Control the environment (variables) and configure gonb. - `!<shell commands>` : Execute shell commands. Similar to the ipython kernel.
In particular `%help` will print out currently available commands.
Index ¶
Constants ¶
View Source
const HelpMessage = `` /* 3305-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse(msg kernel.Message, goExec *goexec.State, execute bool, codeLines []string, usedLines map[int]bool) (err error)
Parse will check whether the given code to be executed has any special commands.
Any special commands found in the code will be executed (if execute is set to true) and the corresponding lines used from the code will be returned in usedLines -- so they can be excluded from other executors (goexec).
If any errors happen, it is returned in err.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.