LocalCommandContext constructor
LocalCommandContext({
- required NodeDescriptor node,
- required DateTime startedAt,
- required void writeLine(
- String line
- ClientRuntime? client,
- Principal? principal,
- RemoteSession? session,
- ShellFamily? shellFamily,
- Clock clock = const SystemClock(),
- Future<
String> readLine(- String prompt
- String? currentRemoteCwd()?,
- void printAbove(
- String line
- LocalCommandRegistry? registry,
- Future<
SessionCommandResult> runInSession(- String command
- void onInterruptRequest(
- void handler()?
- String horizontalRule()?,
- Future<
void> runFullScreen()?,
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,
});