pimlico.cli.shell.base module¶
-
class
pimlico.cli.shell.base.
DataShell
(data, commands, *args, **kwargs)[source]¶ Bases:
cmd.Cmd
Terminal shell for querying datatypes.
-
default
(line)[source]¶ We use this to handle most commands, including the default fallback, which is to execute Python
-
prompt
= '>>> '¶
-
-
class
pimlico.cli.shell.base.
ShellCommand
[source]¶ Bases:
object
Base class used to provide commands for exploring a particular datatype. A basic set of commands is provided for all datatypes, but specific datatype classes may provide their own, by overriding the shell_commands attribute.
-
commands
= []¶
-
help_text
= None¶
-