/
IDaemonResponse.ts
50 lines (44 loc) · 1.29 KB
/
IDaemonResponse.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/
/**
* Option interface to construct response from daemon client
* @export
* @interface IDaemonResponse
*/
export interface IDaemonResponse {
/**
* List of CLI arguments received from the daemon client.
*/
argv?: string[];
/**
* Current working directory received from the daemon client.
*/
cwd?: string;
/**
* Environment variables with CLI prefix received from the daemon client.
*/
env?: Record<string, string>;
/**
* Length of stdin data received from the daemon client.
* The client sends binary stdin data as a multipart request, that contains
* a JSON body with `stdinLength` defined, followed by the raw binary data.
*/
stdinLength?: number;
/**
* Stdin text received from the daemon client.
* This is used for plain text stdin data like replies to prompts.
*/
stdin?: string;
/**
* The user that initiated the request from the daemon client.
*/
user?: string;
}