diff options
| author | 2025-03-16 14:43:41 -0500 | |
|---|---|---|
| committer | 2025-03-16 14:58:18 -0500 | |
| commit | beacfbf501816236e2e930a7b9f24240c8770a8b (patch) | |
| tree | 07b378972a43073b2af9b83fe9d3cc2b8f8bee1e /bin | |
| parent | Deal with janet bundle quirks in a backwards and forwards compatible (diff) | |
Move away from using rules to define all bundle hooks.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/janet-pm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/janet-pm b/bin/janet-pm index 1d0e003..920085c 100755 --- a/bin/janet-pm +++ b/bin/janet-pm @@ -70,9 +70,6 @@ relative to project.janet. Will patch the module paths to load built native code without installing it. Shorthand for `run check`. - rules - List rules available with run. - rule-tree (root rule) (depth) Print a nice tree to see what rules depend on other rules. Optionally provide a root rule to start printing from, and a @@ -90,6 +87,10 @@ [] (print help-text)) +(defn do-hook + [hook & args] + (pm/local-hook hook @{} ;args)) + (defn build [] (pm/local-hook "build" @{})) @@ -100,7 +101,7 @@ (defn rules [] - (pm/local-hook "build" @{} "list-rules")) + (pm/local-hook "list-rules")) (defn clean [] @@ -184,6 +185,7 @@ "test" test "help" help "deps" deps + "hook" do-hook "new-project" new-project "new-c-project" new-c-project "new-exe-project" new-exe-project |
