run method
Runs this command.
The return value is wrapped in a Future
if necessary and returned by
CommandRunner.runCommand
.
Implementation
@override
FutureOr? run() async {
final url = argResults?['url'];
final text = argResults?['text'];
if (url == null || text == null) {
logger.log('url 或 text 未配置', status: LogStatus.error);
exit(1);
}
await sendTextToWeixinWebhooks(url, text);
}