Closed brucedjones closed 2 years ago
Summary It is often useful to specify positional arguments at script call time rather than generate time. The following is now supported for example.
package-scripts.js
module.exports = {scripts: {default: 'echo "hello $1 world"''}}
Which would resolve to echo "hello big world" when invoked with nps default -- big. Additionally, positional arguments can be specified in any order, and are 1-indexed according to bash convention.
echo "hello big world"
nps default -- big
Test Plan
What:
Why:
How:
Checklist:
Summary It is often useful to specify positional arguments at script call time rather than generate time. The following is now supported for example.
package-scripts.js
Which would resolve to
echo "hello big world"
when invoked withnps default -- big
. Additionally, positional arguments can be specified in any order, and are 1-indexed according to bash convention.Test Plan
What:
Why:
How:
Checklist: