Interface Shell
interface Shell {
credentials: Credentials;
cwd: string;
env: Map<string, string>;
envObject: Record<string, string>;
id: string;
username: string;
attach(terminal: Terminal): void;
clearPositionalParameters(): void;
execute(line: string): Promise<number>;
setPositionalParameters(args: string[]): void;
}
credentials: Credentials;
cwd: string;
env: Map<string, string>;
envObject: Record<string, string>;
id: string;
username: string;
attach(terminal: Terminal): void;
clearPositionalParameters(): void;
execute(line: string): Promise<number>;
setPositionalParameters(args: string[]): void;
}
Index
Properties
Methods
Properties
credentials
credentials: Credentials
Current user's credentials
cwd
cwd: string
Current working directory
Readonly
env
Environment variables
Readonly
envObject
Environment variables as object
Readonly
id
id: string
Shell ID
Readonly
username
username: string
Current username
Interface for shell functionality