deluge.ui.console.cmdline package

Submodules

deluge.ui.console.cmdline.command module

class deluge.ui.console.cmdline.command.BaseCommand

Bases: object

add_arguments(parser)
add_subparser(subparsers)
aliases = []
complete(text, *args)
create_parser()
description
epilog = ''
handle(options)
interactive_only = False
name
name_with_alias
split(text)
usage = None
class deluge.ui.console.cmdline.command.Commander(cmds, interactive=False)

Bases: object

do_command(cmd_line)

Run a console command.

Parameters

cmd_line (str) – Console command.

Returns

Deferred – A deferred that fires when the command has been executed.

exec_command(options, *args)

Execute a console command.

Parameters

options (argparse.Namespace) – The command to execute.

Returns

Deferred – A deferred that fires when command has been executed.

exit(status=0, msg=None)
parse_command(cmd_line)

Parse a console command and process with argparse.

Parameters

cmd_line (str) – Console command.

Returns

argparse.Namespace – The parsed command.

write(line)

Module contents