-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
|
||
```typescript | ||
#!/usr/bin/env dzx | ||
/// <reference path="https://deno.land/x/[email protected].3/types.d.ts" /> | ||
/// <reference path="https://deno.land/x/[email protected].4/types.d.ts" /> | ||
|
||
$.verbose = true; | ||
$.shell = "/usr/local/bin/zsh"; | ||
|
@@ -74,7 +74,7 @@ await fs.ensureDir("./tmp"); | |
## Install | ||
|
||
``` | ||
deno install --allow-all -r -f --unstable https://deno.land/x/[email protected].3/dzx.ts | ||
deno install --allow-all --unstable -f https://deno.land/x/[email protected].4/dzx.ts | ||
``` | ||
|
||
> `--unstable` is required for the `bundle` command which uses `Deno.emit`, for | ||
|
@@ -93,15 +93,15 @@ reference to the top of the file, | |
|
||
``` | ||
#!/usr/bin/env dzx | ||
/// <reference path="https://deno.land/x/[email protected].3/types.d.ts" /> | ||
/// <reference path="https://deno.land/x/[email protected].4/types.d.ts" /> | ||
``` | ||
|
||
or you can import all symbol directly from the `dzx/mod.ts` module instead of | ||
using globals. | ||
|
||
```ts | ||
#!/usr/bin/env dzx | ||
import { $, cd, fs, io, log, path } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { $, cd, fs, io, log, path } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
``` | ||
|
||
After making your script executable, | ||
|
@@ -122,8 +122,8 @@ You can use `dzx` without installation by using next shebang. This also allows | |
you to explicitly set the permissions for your script. | ||
|
||
```typescript | ||
#!/usr/bin/env deno run --allow-run --allow-read --allow-env https://deno.land/x/[email protected].3/dzx.ts | ||
/// <reference path="https://deno.land/x/[email protected].3/types.d.ts" /> | ||
#!/usr/bin/env deno run --allow-run --allow-read --allow-env https://deno.land/x/[email protected].4/dzx.ts | ||
/// <reference path="https://deno.land/x/[email protected].4/types.d.ts" /> | ||
|
||
console.log(`Hello ${$.blue.bold("world")}!`); | ||
``` | ||
|
@@ -139,7 +139,7 @@ the `dzx` cli. | |
|
||
```typescript | ||
#!/usr/bin/env dzx --worker --allow-read | ||
/// <reference path="https://deno.land/x/[email protected].3/types.d.ts" /> | ||
/// <reference path="https://deno.land/x/[email protected].4/types.d.ts" /> | ||
|
||
console.log(`Hello from ${$.blue.bold("worker")}!`); | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const VERSION = "0.2.3"; | ||
export const VERSION = "0.2.4"; |