mirror of
https://github.com/janet-lang/janet
synced 2026-09-16 22:31:21 +00:00
Update jpm with show-paths
Update CHANGELOG.md as well.
This commit is contained in:
+10
@@ -871,6 +871,7 @@ Subcommands are:
|
||||
and install the current project.
|
||||
uninstall (module) : uninstall a module. If no module is given, uninstall the module
|
||||
defined by the current directory.
|
||||
show-paths : prints the paths that will be used to install things.
|
||||
clean : remove any generated files or artifacts
|
||||
test : run tests. Tests should be .janet files in the test/ directory relative to project.janet.
|
||||
deps : install dependencies for the current project.
|
||||
@@ -901,6 +902,14 @@ Flags are:
|
||||
[]
|
||||
(print help))
|
||||
|
||||
(defn- show-paths
|
||||
[]
|
||||
(print "binpath: " (dyn :binpath JANET_BINPATH))
|
||||
(print "modpath: " (dyn :modpath JANET_MODPATH))
|
||||
(print "libpath: " (dyn :libpath JANET_LIBPATH))
|
||||
(print "headerpath: " (dyn :headerpath JANET_HEADERPATH))
|
||||
(print "syspath: " (dyn :syspath)))
|
||||
|
||||
(defn- build
|
||||
[]
|
||||
(local-rule "build"))
|
||||
@@ -952,6 +961,7 @@ Flags are:
|
||||
"test" test
|
||||
"help" help
|
||||
"deps" deps
|
||||
"show-paths" show-paths
|
||||
"clear-cache" clear-cache
|
||||
"run" local-rule
|
||||
"rules" list-rules
|
||||
|
||||
Reference in New Issue
Block a user