run method
Runs this command.
The return value is wrapped in a Future
if necessary and returned by
CommandRunner.runCommand
.
Implementation
@override
Future<void> run() async {
final firestore = await initFirestore(
project: getArgProject(argResults),
database: getArgDatabase(argResults),
usage: usage,
);
final restArgs = argResults!.rest;
checkHaveOnlyOneArg(
restArgs: restArgs,
usage: usage,
);
final relPath = restArgs.single;
await firestore.deleteDocument(documentPath: relPath);
}