Skip to content

Commit cc9da9e

Browse files
committed
[flakestry] update README
1 parent 48878ca commit cc9da9e

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

β€Žflakestry/README.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Publish a [Nix Flake](https://nix.dev/concepts/flakes/) from a Github Repository to [flakestry](https://flakestry.dev).
77

8-
## Usage
8+
## πŸš€ Usage
99

1010
```sh
1111
dagger call -m github.com/tsirysndr/daggerverse/flakestry publish \
@@ -29,3 +29,17 @@ dagger call -m github.com/tsirysndr/daggerverse/flakestry publish \
2929
| actions-id-token-request-url | GitHub Actions ID token request URL. | true |
3030
| url | URL of the flakestry API | false |
3131
| ignore-conflicts | Ignore conflicts when publishing the flake to flakestry. | false |
32+
33+
## πŸ§‘β€πŸ’» Programmatic usage
34+
35+
```typescript
36+
import { publish } from 'jsr:@daggerverse/flakestry';
37+
38+
await publish(".",
39+
"v0.1.0",
40+
Deno.env.get("GH_TOKEN")!,
41+
Deno.env.get("REF")!,
42+
Deno.env.get("ACTIONS_ID_TOKEN_REQUEST_TOKEN")!,
43+
Deno.env.get("ACTIONS_ID_TOKEN_REQUEST_URL")!
44+
);
45+
```

β€Žflakestry/deno.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"name": "@daggerverse/flakestry",
3+
"version": "0.1.0",
4+
"exports": "./mod.ts",
25
"importMap": "import_map.json",
36
"tasks": {
47
"esm:add": "deno run -A https://esm.sh/v128 add",

0 commit comments

Comments
Β (0)