PlanShowCommand constructor

PlanShowCommand({
  1. PlanStore? planStore,
  2. PlanAvailability availabilityReader(
    1. ChangePlan,
    2. PlanLocationRecord?
    ) = planAvailability,
  3. void out(
    1. String
    )?,
  4. void diagnostics(
    1. String
    )?,
})

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']);
}