enigma.cli package

Submodules

enigma.cli.start module

class enigma.cli.start.StartCommand(parser, *args, **kwargs)[source]

Bases: enigma.cli.CommandFactory

run(*sys_args, **kwargs)[source]

Kittens will die if this isn’t implemented.

Module contents

class enigma.cli.CommandFactory[source]

Bases: object

Makes building commands for cli easier. Why not argparse.Action? We tried doing that, but Action can’t handle subparsers that have actions that need it’s own extra sub cli. Plus this way, we have a neat structure for cli.

When defining new sub commands, just pass your command’s method name to the action key.

run(*args, **kwargs)[source]

Kittens will die if this isn’t implemented.