27
27
28
28
``` typescript
29
29
#! / usr / bin / env dzx
30
- /// <reference path = " https://deno.land/x/[email protected] .0 /types.d.ts" />
30
+ /// <reference path = " https://deno.land/x/[email protected] .1 /types.d.ts" />
31
31
32
32
$ .verbose = true ;
33
33
$ .shell = " /usr/local/bin/zsh" ;
@@ -78,7 +78,7 @@ await fs.ensureDir("./tmp");
78
78
## Install
79
79
80
80
```
81
- deno install --allow-all --unstable -f https://deno.land/x/[email protected] .0 /dzx.ts
81
+ deno install --allow-all --unstable -f https://deno.land/x/[email protected] .1 /dzx.ts
82
82
```
83
83
84
84
> ` --unstable ` is required for the ` bundle ` command which uses ` Deno.emit ` , for
@@ -97,15 +97,15 @@ reference to the top of the file,
97
97
98
98
```
99
99
#!/usr/bin/env dzx
100
- /// <reference path="https://deno.land/x/[email protected] .0 /types.d.ts" />
100
+ /// <reference path="https://deno.land/x/[email protected] .1 /types.d.ts" />
101
101
```
102
102
103
103
or you can import all symbol directly from the ` dzx/mod.ts ` module instead of
104
104
using globals.
105
105
106
106
``` ts
107
107
#! / usr / bin / env dzx
108
- import {
$ ,
cd ,
fs ,
io ,
log ,
path }
from " https://deno.land/x/[email protected] .0 /mod.ts" ;
108
+ import {
$ ,
cd ,
fs ,
io ,
log ,
path }
from " https://deno.land/x/[email protected] .1 /mod.ts" ;
109
109
```
110
110
111
111
After making your script executable,
@@ -126,8 +126,8 @@ You can use `dzx` without installation by using next shebang. This also allows
126
126
you to explicitly set the permissions for your script.
127
127
128
128
``` typescript
129
- #
! / usr / bin / env deno run -- allow - run -- allow - read -- allow - env https :
// deno.land/x/[email protected] .0 /dzx.ts
130
- /// <reference path = " https://deno.land/x/[email protected] .0 /types.d.ts" />
129
+ #
! / usr / bin / env deno run -- allow - run -- allow - read -- allow - env https :
// deno.land/x/[email protected] .1 /dzx.ts
130
+ /// <reference path = " https://deno.land/x/[email protected] .1 /types.d.ts" />
131
131
132
132
console .log (` Hello ${$ .blue .bold (" world" )}! ` );
133
133
```
@@ -143,7 +143,7 @@ the `dzx` cli.
143
143
144
144
``` typescript
145
145
#! / usr / bin / env dzx -- worker -- allow - read
146
- /// <reference path = " https://deno.land/x/[email protected] .0 /types.d.ts" />
146
+ /// <reference path = " https://deno.land/x/[email protected] .1 /types.d.ts" />
147
147
148
148
console .log (` Hello from ${$ .blue .bold (" worker" )}! ` );
149
149
```
@@ -352,7 +352,7 @@ notes.
352
352
353
353
```
354
354
Usage: dzx [script] [args...]
355
- Version: 0.3.0
355
+ Version: 0.3.1
356
356
357
357
Description:
358
358
0 commit comments