registerCommand method

  1. @override
void registerCommand(
  1. CommandContract<CommandBuilder> command()
)
override

Implementation

@override
void registerCommand(CommandContract Function() command) {
  final instance = command();
  _kernel.commands.addCommand(instance.build());
}