run method
Runs this command.
The return value is wrapped in a Future
if necessary and returned by
CommandRunner.runCommand.
Implementation
run() {
if (argResults != null) {
if (argResults!.wasParsed('allow')) {
linio.tagManager.allow(argResults!['allow']);
return ['$description: Allow ${argResults!['allow']}'];
} else if (argResults!.wasParsed('block')) {
linio.tagManager.block(argResults!['block']);
return ['$description: Block ${argResults!['block']}'];
}
}
return [];
}