You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Citadel/TTY/Client/TTY.swift
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
import Foundation
2
2
import Logging
3
3
import NIO
4
-
import NIOSSH
4
+
@preconcurrencyimport NIOSSH
5
5
import NIOConcurrencyHelpers
6
+
6
7
/// Represents an error that occurred while processing TTY standard error output
7
8
publicstructTTYSTDError:Error{
8
9
/// The error message as a raw byte buffer
@@ -232,7 +233,7 @@ extension SSHClient {
232
233
/// Executes a command on the remote server and returns a stream of its output
233
234
/// - Parameters:
234
235
/// - command: The command to execute on the remote server
235
-
/// - environment: Array of environment variables to set for the command
236
+
/// - environment: Array of environment variables to set for the command. This requires `PermitUserEnvironment` to be enabled in your OpenSSH server's configuration.
236
237
/// - inShell: Whether to execute the command within a shell context. Defaults to false
237
238
/// - Returns: An async stream that yields command output as it becomes available
238
239
/// - Throws: CommandFailed if the command exits with non-zero status
@@ -342,7 +343,7 @@ extension SSHClient {
342
343
/// Creates a pseudo-terminal (PTY) session and executes the provided closure with input/output streams
343
344
/// - Parameters:
344
345
/// - request: PTY configuration parameters
345
-
/// - environment: Array of environment variables to set for the PTY session
346
+
/// - environment: Array of environment variables to set for the PTY session. This requires `PermitUserEnvironment` to be enabled in your OpenSSH server's configuration.
346
347
/// - perform: Closure that receives TTY input/output streams and performs terminal operations
347
348
/// - Throws: Any errors that occur during PTY setup or operation
0 commit comments