addSubCommand method

CommandBuilder addSubCommand(
  1. SubCommandBuilder command(
    1. SubCommandBuilder
    )
)

Implementation

CommandBuilder addSubCommand(
    SubCommandBuilder Function(SubCommandBuilder) command) {
  final builder = SubCommandBuilder();
  command(builder);
  _subCommands.add(builder);
  return this;
}