Skip to content

action

dandy.cli.actions.help.action

HelpAction

Bases: BaseAction

name = 'Help' class-attribute instance-attribute

description = 'Get help on how to use the Dandy command line interface.' class-attribute instance-attribute

calls = ('h', 'help') class-attribute instance-attribute

help

Source code in dandy/cli/actions/help/action.py
def help(self) -> None:
    print('help of all sorts')

run

Source code in dandy/cli/actions/help/action.py
def run(self, user_input: str) -> str:
    start_time = tui.printer.start_task('Generating', 'helpful answer')

    default_intel = DefaultUserInputBot().process(user_input)

    tui.printer.end_task(start_time)

    return default_intel.response