rdme
Version:
ReadMe's official CLI and GitHub Action.
20 lines (16 loc) • 434 B
JavaScript
import stringArgv from 'string-argv';
async function main() {
const { execute } = await import('@oclif/core');
const opts = { dir: import.meta.url };
if (process.env.INPUT_RDME) {
opts.args = stringArgv(process.env.INPUT_RDME);
}
await execute(opts).then(msg => {
if (msg && typeof msg === 'string') {
// eslint-disable-next-line no-console
console.log(msg);
}
});
}
main();