A Completer that completes based on a recursively defined List of Completers.
A shell base that can be used to build shell like applications.
Definition of a shell command.
Allows hooking a pre-existing shell command into another place in the command hierarchy.
A group of shell commands.
Collection of ways to solicit validated input from a user on a command line.
A Completer that completes based on a recursively defined List of Completers.
Note that NestedCompleter("a", NestedCompleter("b", NestedCompleter("c")) is different than ArgumentCompleter("a", ArgumentCompleter("b", ArgumentCompleter("c"))).
The
ArgumentCompleter
version will stop suggest completions for "c" after typing "a b", since every argument ofArgumentCompleter
maps to at most one token (in fact, it won't even suggest "b"). TheNestedCompleter
version will auto-complete for every stage of "a b c" as expected.