File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/sessions/WebSocketSession Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @codesandbox/sdk" ,
3- "version" : " 1.1.4 " ,
3+ "version" : " 1.1.5 " ,
44 "description" : " The CodeSandbox SDK" ,
55 "author" : " CodeSandbox" ,
66 "license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ export type ShellRunOpts = {
1010 name ?: string ;
1111 env ?: Record < string , string > ;
1212 cwd ?: string ;
13+ /**
14+ * Run the command in the global session instead of the current session. This makes
15+ * any environment variables available to all users of the Sandbox.
16+ */
17+ asGlobalSession ?: boolean ;
1318} ;
1419
1520export type CommandStatus =
@@ -60,7 +65,7 @@ export class Commands {
6065 this . pitcherClient . workspacePath ,
6166 opts ?. dimensions ?? DEFAULT_SHELL_SIZE ,
6267 commandWithEnv ,
63- "TERMINAL" ,
68+ opts ?. asGlobalSession ? "COMMAND" : "TERMINAL" ,
6469 true
6570 ) ;
6671
You can’t perform that action at this time.
0 commit comments