PlanShowCommand constructor
PlanShowCommand({
- PlanStore? planStore,
- PlanAvailability availabilityReader() = planAvailability,
- void out()?,
- void diagnostics()?,
Implementation
PlanShowCommand({
PlanStore? planStore,
this.availabilityReader = planAvailability,
void Function(String)? out,
void Function(String)? diagnostics,
}) : planStore = planStore ?? PlanStore(),
out = out ?? stdout.writeln,
diagnostics = diagnostics ?? stderr.writeln {
argParser.addOption('output', allowed: ['text', 'json']);
}