File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ console.log(`Hello from ${$.blue.bold("worker")}!`);
250
250
## Variables
251
251
252
252
- ** $.shell:** Set the shell that is used by `` $`command` `` . Default:
253
- ` /bin/sh `
253
+ ` /bin/bash `
254
254
- ** $.prefix:** Command prefix. Default: ` set -euo pipefail; ` .
255
255
- ** $.mainModule:** The executed dzx script.
256
256
- ** $.verbose:** Enable debugging output (log shell commands and execution
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { quote } from "./quote.ts";
6
6
export { ProcessError } from "./process_error.ts" ;
7
7
export { ProcessOutput } from "./process_output.ts" ;
8
8
9
- export type $Global = typeof exec & typeof colors & {
9
+ export type $ = typeof exec & typeof colors & {
10
10
shell : string ;
11
11
prefix : string ;
12
12
mainModule : string ;
@@ -20,13 +20,13 @@ export type $Global = typeof exec & typeof colors & {
20
20
time : number ;
21
21
} ;
22
22
23
- export const $ : $Global = exec as $Global ;
23
+ export const $ : $ = exec as $ ;
24
24
25
25
Object . setPrototypeOf ( $ , Object . getPrototypeOf ( colors ) ) ;
26
26
27
27
$ . _stack = [ ] ;
28
- $ . shell = "/bin/sh " ;
29
- $ . prefix = "set -eu ;" ;
28
+ $ . shell = "/bin/bash " ;
29
+ $ . prefix = "set -euo pipefail ;" ;
30
30
$ . mainModule = "" ;
31
31
$ . verbose = false ;
32
32
$ . stdout = "piped" ;
Original file line number Diff line number Diff line change 1
1
import type {
2
- $Global ,
2
+ $ ,
3
3
async as _async ,
4
4
cd as _cd ,
5
5
flags as _flags ,
@@ -25,7 +25,7 @@ import type {
25
25
26
26
declare global {
27
27
// dzx
28
- const $ : $Global ;
28
+ const $ : $ ;
29
29
const cd : typeof _cd ;
30
30
const quote : typeof _quote ;
31
31
@@ -64,7 +64,7 @@ declare global {
64
64
65
65
interface Window {
66
66
// dzx
67
- $ : $Global ;
67
+ $ : $ ;
68
68
cd : typeof _cd ;
69
69
quote : typeof _quote ;
70
70
@@ -79,7 +79,7 @@ declare global {
79
79
80
80
interface WorkerGlobalScope {
81
81
// dzx
82
- $ : $Global ;
82
+ $ : $ ;
83
83
cd : typeof _cd ;
84
84
quote : typeof _quote ;
85
85
You can’t perform that action at this time.
0 commit comments