LocalCommandContext constructor

LocalCommandContext({
  1. required NodeDescriptor node,
  2. required DateTime startedAt,
  3. required void writeLine(
    1. String line
    ),
  4. ClientRuntime? client,
  5. Principal? principal,
  6. RemoteSession? session,
  7. ShellFamily? shellFamily,
  8. Clock clock = const SystemClock(),
  9. Future<String> readLine(
    1. String prompt
    )?,
  10. String? currentRemoteCwd()?,
  11. void printAbove(
    1. String line
    )?,
  12. LocalCommandRegistry? registry,
  13. Future<SessionCommandResult> runInSession(
    1. String command
    )?,
  14. void onInterruptRequest(
    1. void handler()?
    )?,
  15. String horizontalRule()?,
  16. Future<void> runFullScreen(
    1. Future<void> body(
      1. Stream<List<int>> input
      )
    )?,
})

Creates a command context.

Implementation

LocalCommandContext({
  required this.node,
  required this.startedAt,
  required this.writeLine,
  this.client,
  this.principal,
  this.session,
  this.shellFamily,
  this.clock = const SystemClock(),
  this.readLine,
  this.currentRemoteCwd,
  this.printAbove,
  this.registry,
  this.runInSession,
  this.onInterruptRequest,
  this.horizontalRule,
  this.runFullScreen,
});