Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 373 Bytes

File metadata and controls

14 lines (9 loc) · 373 Bytes

Custom executable

You can use create executable and use Pine under the hood. To make it work you need to push the file flag to argv array so Pine knows where to load your pinefile.js from.

#!/usr/bin/env node

const { api } = require("@pinefile/pine");
const argv = process.argv.slice(2);

argv.push(`--file=${__dirname}/pinefile.js`);

api.runCLI(argv);