File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 5
5
6
6
Publish a [ Nix Flake] ( https://nix.dev/concepts/flakes/ ) from a Github Repository to [ flakestry] ( https://flakestry.dev ) .
7
7
8
- ## Usage
8
+ ## π Usage
9
9
10
10
``` sh
11
11
dagger call -m github.com/tsirysndr/daggerverse/flakestry publish \
@@ -29,3 +29,17 @@ dagger call -m github.com/tsirysndr/daggerverse/flakestry publish \
29
29
| actions-id-token-request-url | GitHub Actions ID token request URL. | true |
30
30
| url | URL of the flakestry API | false |
31
31
| 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
+ ```
Original file line number Diff line number Diff line change 1
1
{
2
+ "name" : " @daggerverse/flakestry" ,
3
+ "version" : " 0.1.0" ,
4
+ "exports" : " ./mod.ts" ,
2
5
"importMap" : " import_map.json" ,
3
6
"tasks" : {
4
7
"esm:add" : " deno run -A https://esm.sh/v128 add" ,
You canβt perform that action at this time.
0 commit comments