CliCommand<R> constructor

CliCommand<R>({
  1. required String name,
  2. required String description,
  3. required void configureArg(
    1. ArgParser parser
    ),
  4. List<CliCommand> commands = const [],
})

Implementation

CliCommand({
  required this.name,
  required this.description,
  required this.configureArg,
  List<CliCommand> commands = const [],
})  : commands = {},
      super() {
  configureArg(argParser);
  for (var value in commands) {
    addCliCommand(value);
  }
}