Skip to content

Commit

Permalink
chore: bump version to v0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed Aug 13, 2021
1 parent 8481962 commit 2a3cadf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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
Expand All @@ -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,
Expand All @@ -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")}!`);
```
Expand All @@ -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")}!`);
```
Expand Down
2 changes: 1 addition & 1 deletion version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = "0.2.3";
export const VERSION = "0.2.4";

0 comments on commit 2a3cadf

Please sign in to comment.