-
TL;DR: Is there support for exec(3) functions somewhere I'm missing / in a package? Quick disclaimer: I've been looking at Janet for about one day, so my experience is pretty minimal. I'm interested in Janet as a possible replacement for piles of Bash scripts. So lots of little programs that are run frequently, changed infrequently, and loosely owned. Fast start-up and highly regular syntax are the big selling points for Janet. A common pattern in this role is to parse args, read some config, and assemble another command to swap in using the exec(3) family of *nix/libc functions. Is there support for these functions somewhere in the stdlib/spork that I'm missing? If not, is it due to
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
spork/argparse gives you argument parsing and os/execute allows you to execute commands. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure about a Janet equivalent to PISIX's |
Beta Was this translation helpful? Give feedback.
Janet doesn't have fork and exec as separate functions, mostly for windows compatibility. That said, open a bug or PR and I would be happy to add them (on everything but windows).
For most needs, os/spawn is a wrapper around posix_spawn that has good analogues on windows.