nb_cli.cli.customize

class ClickAliasedCommand(*args, **kwargs)

  • 参数

    • *args

    • **kwargs

class ClickAliasedGroup(*args, **kwargs)

  • 参数

    • *args

    • **kwargs

method add_aliases(self, cmd_name, aliases)

  • 参数

    • cmd_name (str)

    • aliases (list[str])

  • 返回

    • None

method add_command(self, cmd, name=None)

  • 参数

    • cmd (click.core.Command)

    • name (str | None)

  • 返回

    • None

method command(self, *args, **kwargs)

  • 参数

    • *args

    • **kwargs

  • 返回

    • Unknown

method format_commands(self, ctx, formatter)

  • 参数

    • ctx (click.core.Context)

    • formatter (click.formatting.HelpFormatter)

  • 返回

    • Unknown

method get_command(self, ctx, cmd_name)

  • 参数

    • ctx (click.core.Context)

    • cmd_name (str)

  • 返回

    • Unknown

method group(self, *args, **kwargs)

  • 参数

    • *args

    • **kwargs

  • 返回

    • Unknown

method list_commands(self, ctx)

  • 参数

    • ctx (click.core.Context)
  • 返回

    • list[str]

method resolve_alias(self, cmd_name)

  • 参数

    • cmd_name
  • 返回

    • Unknown

class CLIMainGroup(*args, **kwargs)

  • 参数

    • *args

    • **kwargs

method get_command(self, ctx, cmd_name)

  • 参数

    • ctx (click.core.Context)

    • cmd_name (str)

  • 返回

    • click.core.Command | None

method list_commands(self, ctx)

  • 参数

    • ctx (click.core.Context)
  • 返回

    • list[str]