aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/janet-pm
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2025-03-09 10:36:53 -0500
committerCalvin Rose <calsrose@gmail.com>2025-03-09 10:36:53 -0500
commit1a9d03fa0c444e87e48835b48cf7c72d1fb6f4f9 (patch)
tree00870286baedae25ebc017ed0b218e4546c7fd6c /bin/janet-pm
parentAdd basic janet-pm binary as in progress jpm replacement. (diff)
Update janet-pm to be able to install joy from scratch.
Fixes how `declare-source` and `declare-headers` work.
Diffstat (limited to 'bin/janet-pm')
-rwxr-xr-xbin/janet-pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/janet-pm b/bin/janet-pm
index 125b3e4..d8aaec4 100755
--- a/bin/janet-pm
+++ b/bin/janet-pm
@@ -6,9 +6,6 @@
(import spork/declare-cc)
(import spork/argparse)
-(trace pm/resolve-bundle)
-(trace pm/pm-install)
-
(def help-text
```
usage: janet-pm [--key=value, --flag] ... [subcommand] [args] ...
@@ -157,6 +154,11 @@
(unless ap (break))
(unless (ap :default) (break (help)))
+ (when (get
+ {"t" true "true" true "1" true "yes" true "on" true}
+ (string/ascii-lower (string/trim (os/getenv "VERBOSE" "false"))))
+ (setdyn :verbose true))
+
(def [sub-command & command-args] (ap :default))
(def cmd (get subcommands sub-command))
(assertf cmd "unknown command %v, --help for help" sub-command)