LocalCommandContext constructor

LocalCommandContext({
  1. required ClientRuntime client,
  2. required NodeDescriptor node,
  3. required DateTime startedAt,
  4. required void writeLine(
    1. String line
    ),
  5. Principal? principal,
  6. RemoteSession? session,
  7. Clock clock = const SystemClock(),
  8. Future<String> readLine(
    1. String prompt
    )?,
  9. String? currentRemoteCwd()?,
  10. void printAbove(
    1. String line
    )?,
})

Creates a command context.

Implementation

LocalCommandContext({
  required this.client,
  required this.node,
  required this.startedAt,
  required this.writeLine,
  this.principal,
  this.session,
  this.clock = const SystemClock(),
  this.readLine,
  this.currentRemoteCwd,
  this.printAbove,
});