nb_cli.cli.customize
class ClickAliasedCommand(*args, **kwargs)
-
参数
-
*args -
**kwargs
-
class ClickAliasedGroup(*args, **kwargs)
-
参数
-
*args -
**kwargs
-
method command(*args, **kwargs)
-
参数
-
*args -
**kwargs
-
-
返回
- untyped
method group(*args, **kwargs)
-
参数
-
*args -
**kwargs
-
-
返回
- untyped
method add_aliases(cmd_name, aliases)
-
参数
-
cmd_name(str) -
aliases(list[str])
-
-
返回
- None
method resolve_alias(cmd_name)
-
参数
cmd_name
-
返回
- untyped
method add_command(cmd, name=None)
-
参数
-
cmd(click.Command) -
name(str | None)
-
-
返回
- None
method get_command(ctx, cmd_name)
-
参数
-
ctx(click.Context) -
cmd_name(str)
-
-
返回
- untyped
method list_commands(ctx)
-
参数
ctx(click.Context)
-
返回
- list[str]
method format_commands(ctx, formatter)
-
参数
-
ctx(click.Context) -
formatter(click.HelpFormatter)
-
-
返回
- untyped
class CLIMainGroup(*args, **kwargs)
-
参数
-
*args -
**kwargs
-
method get_command(ctx, cmd_name)
-
参数
-
ctx(click.Context) -
cmd_name(str)
-
-
返回
- click.Command | None
method list_commands(ctx)
-
参数
ctx(click.Context)
-
返回
- list[str]