group method

GroupCommand group({
  1. String? description,
})

Creates a new GroupCommand with the Commands as the commands.

final commands = Commands();

commands.use('foo', fooCommand);
commands.use('bar', barCommand);

final group = commands.group(description: 'My group');

console.run(group);

Implementation

GroupCommand group({String? description}) => _InternalGroupCommand(
      commands: commands,
      defaultCommand: defaultCommand,
      description: description,
    );