fre.lazy_group module

for lazy-style loading of commands and subcommands while using click see https://click.palletsprojects.com/en/8.1.x/complex/

class fre.lazy_group.LazyGroup(*args, lazy_subcommands=None, **kwargs)

Bases: Group

class defining lazygroup command/subcommand loading

get_command(ctx, cmd_name)

Given a context and a command name, this returns a Command object if it exists or returns None.

list_commands(ctx)

Returns a list of subcommand names in the order they should appear.