addSubCommand method

CommandGroupBuilder addSubCommand(
  1. void command(
    1. SubCommandBuilder
    )
)

Implementation

CommandGroupBuilder addSubCommand(void Function(SubCommandBuilder) command) {
  final builder = SubCommandBuilder();
  command(builder);
  commands.add(builder);
  return this;
}