Re:Xeon – Node.js tool for creating modular, reusable shell ...
by Hurtak on Tuesday May 31, 2016 @09:22AM
(#11806343)
> require is relative to script file instead of execution
cd "$(dirname "$0")"
can solve that
Re:Xeon – Node.js tool for creating modular, reusable shell ...
by eropple on Tuesday May 31, 2016 @12:56AM
(#11804676)
Prefixing is pretty trivial, though, and this does a number on portability without providing the kinds of benefits that a more full-featured solution (either of the rake/thor variety or the Chef/Puppet variety, depending on your aims) is likely to give you.
It's a neat project, but I don't see a ton of use for it.
Advantages over `source` - require is relative to script file instead of execution `pwd` - a build process can create a single distributable file by cat-ing the required files.
Down the road I'd like to see a `babel` for bash. I think import / export, and functions with arguments would make my time with bash more enjoyable and productive.
As with other tools, `xeon` does a little too much,