metro/live/live_shell library

Classes

LiveShell
metro live: a prompt connected to the running app.

Functions

splitForCompletion(String line) → ({String current, List<String> words})
Splits the text before the cursor into the complete words and the current word being typed, for Tab completion.
splitLiveShellLine(String line) → List<String>
Splits a shell line into words the way a POSIX shell does: whitespace separates words, quotes group them, a backslash escapes the next character, and # at the start of a word begins a comment.

Typedefs

LiveShellCommand = ({String description, String name, List<String> options, String usage})
A command metro live lists in help and completes with Tab.
LiveShellDispatch = Future<int?> Function(String name, List<String> arguments, LiveRunner runner)
Runs one command inside metro live and returns its exit code, or null when no command has that name.