tori.cli

class tori.cli.command.Command

Abstract class for all Tori-based commands

define_arguments(argument_parser)

Define the arguments

execute(args)

Execute the command

class tori.cli.console.Console(namespace=None)

Main Console

The commands must be defined first with tag “command” and then any thing with prefix “command:”. For example,

<!-- From https://github.com/nepteam/nep -->
<entity
    id="command.db"
    class="neptune.command.Database"
    tags="command command:db">
    <param name="db" type="entity">db</param>
    <interception before="me" do="execute" with="init"/>
    <interception after="me" do="execute" with="clean_up"/>
</entity>

Then, the command will be referenced with anything after ”:”. From the previous example, the command “command:db” will be referred as “db”.

exception tori.cli.exception.CommandNotFound

Command Not Found

exception tori.cli.exception.InterfaceException

Interface Exception. Require implementation

exception tori.cli.exception.NotConfigured

Not-configured exception

exception tori.cli.exception.TerminationSignal

Termination Signal