Skip to content

Commit

Permalink
Merge branch 'main' of github.com:cdaringe/rad
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaringe committed Nov 24, 2024
2 parents 22c21d5 + 8b1a105 commit eea79f8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion assets/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
set -exo pipefail
curl -fsSL https://deno.land/x/install/install.sh | sh
export __RAD_VERSION__=7.0.0
export __RAD_VERSION__=8.0.0
deno install --global --unstable -f -A -n rad https://deno.land/x/rad@v$__RAD_VERSION__/src/bin.ts
6 changes: 3 additions & 3 deletions assets/site/0005-manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ Well that's not _super_ helpful! Let us study each these keys, one-by-one:
| `fs` | a few sugar methods, `{ readFile, writeFile, mkdirp }` that work on strings, vs buffers, and assume utf8 for shorthand |
| `sh` | execute a shell command. see the command task section above! |
| `dependentResults` | results of `dependsOn` tasks. currently these are untyped. getting type inference here is tricky. PRs welcome! |
| `logger` | the `rad` logger! a standard `Deno` logger with the commonplace log-level methods (e.g. `.info(...)`, `.debug(...)`, etc). see [the source](https://github.com/cdaringe/rad/blob/v7.0.0/src/logger.ts) |
| `logger` | the `rad` logger! a standard `Deno` logger with the commonplace log-level methods (e.g. `.info(...)`, `.debug(...)`, etc). see [the source](https://github.com/cdaringe/rad/blob/v8.0.0/src/logger.ts) |
| `path` | a direct reference to [deno node path](https://deno.land/std/node/path.ts). this API is likely to change if Deno implements a full, proper path module |
| `task` | a reference to the internal `RadTask` |
| `iter` | `AsyncIterable` utility functions |
Expand All @@ -306,7 +306,7 @@ v8.
```bash
#!/bin/sh
# generated by deno install
exec deno run --allow-read --allow-write --allow-net --allow-env --allow-run --allow-hrtime 'https://raw.githubusercontent.com/cdaringe/rad/v7.0.0/src/bin.ts' "$@"
exec deno run --allow-read --allow-write --allow-net --allow-env --allow-run --allow-hrtime 'https://raw.githubusercontent.com/cdaringe/rad/v8.0.0/src/bin.ts' "$@"
```

- extract the `deno run ...` command, drop the leading `exec` and trailing `$@`,
Expand All @@ -318,7 +318,7 @@ Example:
```bash
deno \
run --inspect-brk -A --allow-run --allow-hrtime \
'https://raw.githubusercontent.com/cdaringe/rad/v7.0.0/src/bin.ts' \
'https://raw.githubusercontent.com/cdaringe/rad/v8.0.0/src/bin.ts' \
test
# ^ add any args of interest
```
Expand Down
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Rad always consumes a `rad.ts` file, such as the one shown here:

```ts
// rad.ts
import { Task, Tasks } from "https://deno.land/x/rad@v7.0.0/src/mod.ts";
import { Task, Tasks } from "https://deno.land/x/rad@v8.0.0/src/mod.ts";

// command/shell tasks
// [name: string, cmd: string]
Expand Down Expand Up @@ -88,10 +88,10 @@ the [releases page](https://github.com/cdaringe/rad/releases).

| usage | install-method | install-steps |
| ------- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| cli | `deno` | `deno install --global -f -A -n rad https://raw.githubusercontent.com/cdaringe/rad/v7.0.0/src/bin.ts` |
| cli | `deno` | `deno install --global -f -A -n rad https://raw.githubusercontent.com/cdaringe/rad/v8.0.0/src/bin.ts` |
| cli | `docker` | `docker pull cdaringe/rad` <sup>1</sup> |
| cli | `curl` | <code>curl -fsSL https://raw.githubusercontent.com/cdaringe/rad/v7.0.0/assets/install.sh \| sh</code> (versioned)<br /><code>curl -fsSL https://raw.githubusercontent.com/cdaringe/rad/main/assets/install.sh \| sh</code> (latest) |
| library | `deno` | `import * as rad from https://github.com/cdaringe/rad/blob/main/v7.0.0/mod.ts` |
| cli | `curl` | <code>curl -fsSL https://raw.githubusercontent.com/cdaringe/rad/v8.0.0/assets/install.sh \| sh</code> (versioned)<br /><code>curl -fsSL https://raw.githubusercontent.com/cdaringe/rad/main/assets/install.sh \| sh</code> (latest) |
| library | `deno` | `import * as rad from https://github.com/cdaringe/rad/blob/main/v8.0.0/mod.ts` |

<sup>1</sup>For docker users, consider making a nice shell alias

Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// this file is auto-updated by the release process. see `rad patchInstallVersion`
// script, executed in CI by semantic release

export const version = "7.0.0";
export const version = "8.0.0";

0 comments on commit eea79f8

Please sign in to comment.