Angreal provides two ways to create command groups for organizing related commands.
A function that creates a reusable group decorator.
command_group(name, about="")
import angreal
test = angreal.command_group(name="test", about="commands for testing")
@test()
@angreal.command(name="command", about="a test command")
def command_function():
pass
# invoked with `angreal test command`
A decorator that assigns an Angreal command to a command group. Can be chained to an arbitrary set of depths.
group(name, about="")
import angreal
@angreal.group(name="test", about="commands for testing")
@angreal.command(name="command", about="a test command")
def command_function():
pass
# invoked with `angreal test command`