serena.util.cli_util

serena.util.cli_util#


class AutoRegisteringGroup(name, help)[source]#

Bases: Group

A click.Group subclass that automatically registers any click.Command attributes defined on the class into the group.

After initialization, it inspects its own class for attributes that are instances of click.Command (typically created via @click.command) and calls self.add_command(cmd) on each. This lets you define your commands as static methods on the subclass for IDE-friendly organization without manual registration.

Parameters:
  • name (str)

  • help (str)