CliContext constructor

CliContext({
  1. required OmnyStoreApi store,
  2. bool jsonOutput = false,
  3. bool quiet = false,
  4. StringSink? out,
  5. StringSink? err,
  6. 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;