Skip to content

Easy way to do jpm build and then run the executable? #1100

Closed Answered by ianthehenry
m-r-hunt asked this question in Q&A
Discussion options

You must be logged in to vote

Mmm, you could make a custom build rule:

(declare-executable
  :name "hello"
  :entry "main.janet")

(rule "hello" ["build"]
  (shell "build/hello"))

And execute it with jpm -l run hello. But I'm not sure if jpm has a nice way to forward command line arguments to your script...

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by m-r-hunt
Comment options

You must be logged in to vote
1 reply
@ianthehenry
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants