To make using the Pkl pipe tools even easier, this module produces a shell aliases file
that is compatible with both bash and zsh.
Usage:
# First, generate the aliases file
pkl eval package://pkg.pkl-lang.org/pkl-pantry/pkl.pipe@<version>#/shellshortcuts.pkl > ~/.pklpipe
# Then add it to your profile or rc file.
# For zsh, use:
echo 'source ~/.pklpipe' >> ~/.zshrc
# For bash with a login shell, use:
echo 'source ~/.pklpipe' >> ~/.bash_profile
# Then use the shortcuts in commands like:
curl https://ifconfig.co/json | pjq 'pipe.ip'
Returns the relative, descendent directory path between this module and other.
Throws if no such path exists.
For example, if module mod1 has path /dir1/mod1.pkl, and module mod2 has path /dir1/dir2/dir3/mod2.pkl,
then mod1.relativePathTo(mod2) will return List("dir2", "dir3").
A common use case is to compute the directory path between a template located at the root of a hierarchy
(say rootModule.pkl) and the currently evaluated module (accessible via the module keyword):
Shell aliases for using Pkl pipe tools.