mirror of
https://github.com/janet-lang/janet
synced 2024-06-16 02:09:56 +00:00
Update jpm with show-paths
Update CHANGELOG.md as well.
This commit is contained in:
parent
2b2c1ff917
commit
94b472df64
|
@ -35,6 +35,8 @@ All notable changes to this project will be documented in this file.
|
||||||
- Add `protect` macro.
|
- Add `protect` macro.
|
||||||
- Add `root-env` to get the root environment table.
|
- Add `root-env` to get the root environment table.
|
||||||
- Change marshalling protocol with regard to abstract types.
|
- Change marshalling protocol with regard to abstract types.
|
||||||
|
- Add `show-paths` to `jpm`.
|
||||||
|
- Add several default patterns, like `:d` and `:s+`, to PEGs.
|
||||||
- Update `jpm` path settings to make using `jpm` easier on non-global module trees.
|
- Update `jpm` path settings to make using `jpm` easier on non-global module trees.
|
||||||
- Numerous small bug fixes and usability improvements.
|
- Numerous small bug fixes and usability improvements.
|
||||||
|
|
||||||
|
|
10
auxbin/jpm
10
auxbin/jpm
|
@ -871,6 +871,7 @@ Subcommands are:
|
||||||
and install the current project.
|
and install the current project.
|
||||||
uninstall (module) : uninstall a module. If no module is given, uninstall the module
|
uninstall (module) : uninstall a module. If no module is given, uninstall the module
|
||||||
defined by the current directory.
|
defined by the current directory.
|
||||||
|
show-paths : prints the paths that will be used to install things.
|
||||||
clean : remove any generated files or artifacts
|
clean : remove any generated files or artifacts
|
||||||
test : run tests. Tests should be .janet files in the test/ directory relative to project.janet.
|
test : run tests. Tests should be .janet files in the test/ directory relative to project.janet.
|
||||||
deps : install dependencies for the current project.
|
deps : install dependencies for the current project.
|
||||||
|
@ -901,6 +902,14 @@ Flags are:
|
||||||
[]
|
[]
|
||||||
(print help))
|
(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
|
(defn- build
|
||||||
[]
|
[]
|
||||||
(local-rule "build"))
|
(local-rule "build"))
|
||||||
|
@ -952,6 +961,7 @@ Flags are:
|
||||||
"test" test
|
"test" test
|
||||||
"help" help
|
"help" help
|
||||||
"deps" deps
|
"deps" deps
|
||||||
|
"show-paths" show-paths
|
||||||
"clear-cache" clear-cache
|
"clear-cache" clear-cache
|
||||||
"run" local-rule
|
"run" local-rule
|
||||||
"rules" list-rules
|
"rules" list-rules
|
||||||
|
|
4
jpm.1
4
jpm.1
|
@ -139,6 +139,10 @@ like make. run will run a single rule or build a single file.
|
||||||
.BR rules
|
.BR rules
|
||||||
List all rules that can be run via run. This is useful for exploring rules in the project.
|
List all rules that can be run via run. This is useful for exploring rules in the project.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.BR show-paths
|
||||||
|
Show all of the paths used when installing and building artifacts.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.BR update-pkgs
|
.BR update-pkgs
|
||||||
Update the package listing by installing the 'pkgs' package. Same as jpm install pkgs
|
Update the package listing by installing the 'pkgs' package. Same as jpm install pkgs
|
||||||
|
|
Loading…
Reference in New Issue
Block a user