CliContext constructor
CliContext({
- required OmnyStoreApi store,
- bool jsonOutput = false,
- bool quiet = false,
- StringSink? out,
- StringSink? err,
- Future<
void> onClose()?,
Creates a context.
Implementation
CliContext({
required this.store,
this.jsonOutput = false,
this.quiet = false,
StringSink? out,
StringSink? err,
Future<void> Function()? onClose,
}) : out = out ?? stdout,
err = err ?? stderr,
_onClose = onClose;