addSubCommand method

CommandDeclarationBuilder addSubCommand(
  1. dynamic command(
    1. SubCommandBuilder
    )
)

Implementation

CommandDeclarationBuilder addSubCommand(Function(SubCommandBuilder) command) {
  final builder = SubCommandBuilder();
  command(builder);

  subCommands.add(builder);
  return this;
}