specialcmd

package
v0.0.0-...-dc643fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL