Skip to content

Commit

Permalink
chore: bump version to v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed Jul 17, 2022
1 parent e01ca3b commit c70a986
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {
fs,
io,
path,
} from "https://deno.land/x/dzx@0.3.2/mod.ts";
} from "https://deno.land/x/dzx@0.4.0/mod.ts";

// Output stdout & stderr. Can be: true, false, 0, 1 or 2. Default is: 1
$.verbose = 2;
Expand Down Expand Up @@ -96,17 +96,17 @@ await fs.ensureDir("./tmp");
- `./mod.ts`: Exports the shell and all std modules.

```ts
import { $, cd, path } from "https://deno.land/x/dzx@0.3.2/mod.ts";
import { $, cd, path } from "https://deno.land/x/dzx@0.4.0/mod.ts";
// or
import $ from "https://deno.land/x/dzx@0.3.2/mod.ts";
import $ from "https://deno.land/x/dzx@0.4.0/mod.ts";
```

- `./shell.ts`: Exports only the shell.

```ts
import { $ } from "https://deno.land/x/dzx@0.3.2/shell.ts";
import { $ } from "https://deno.land/x/dzx@0.4.0/shell.ts";
// or
import $ from "https://deno.land/x/dzx@0.3.2/shell.ts";
import $ from "https://deno.land/x/dzx@0.4.0/shell.ts";
```

### Shell
Expand Down Expand Up @@ -389,7 +389,7 @@ When impoting `./globals.ts`, all members exported by `./mod.ts` are globally
available.

```ts
import "https://deno.land/x/dzx@0.3.2/globals.ts";
import "https://deno.land/x/dzx@0.4.0/globals.ts";

cd("foo/bar");

Expand All @@ -405,7 +405,7 @@ available.
### Install

```
deno install --allow-all -f https://deno.land/x/dzx@0.3.2/dzx.ts
deno install --allow-all -f https://deno.land/x/dzx@0.4.0/dzx.ts
```

### Commands
Expand Down Expand Up @@ -511,7 +511,7 @@ reference to the top of the file.

```
#!/usr/bin/env dzx
/// <reference path="https://deno.land/x/dzx@0.3.2/globals.ts" />
/// <reference path="https://deno.land/x/dzx@0.4.0/globals.ts" />
```

### Permissions
Expand All @@ -520,8 +520,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/dzx@0.3.2/dzx.ts
/// <reference path="https://deno.land/x/dzx@0.3.2/globals.ts" />
#!/usr/bin/env deno run --allow-run --allow-read --allow-env https://deno.land/x/dzx@0.4.0/dzx.ts
/// <reference path="https://deno.land/x/dzx@0.4.0/globals.ts" />

console.log(`Hello ${$.blue.bold("world")}!`);
```
Expand Down Expand Up @@ -554,7 +554,7 @@ the `dzx` cli.

```typescript
#!/usr/bin/env dzx --worker --allow-read
/// <reference path="https://deno.land/x/dzx@0.3.2/globals.ts" />
/// <reference path="https://deno.land/x/dzx@0.4.0/globals.ts" />

console.log(`Hello from ${$.blue.bold("worker")}!`);
```
Expand Down
2 changes: 1 addition & 1 deletion examples/basic.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="../types.d.ts" />
/// <reference path="../globals.ts" />

const helloWorld = await $`echo 'Hello World!'`;
console.log(`${$.blue("helloWorld")} result was %o`, helloWorld);
Expand Down
2 changes: 1 addition & 1 deletion examples/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ something like this:

```
#!/usr/bin/env dzx
/// <reference path="https://deno.land/x/dzx@0.3.1/types.d.ts" />
/// <reference path="https://deno.land/x/dzx@0.4.0/globals.ts" />
// deno-lint-ignore-file
$.verbose = true;
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.3.1";
export const VERSION = "0.4.0";

0 comments on commit c70a986

Please sign in to comment.