UNPKG

rdme

Version:

ReadMe's official CLI and GitHub Action.

20 lines (16 loc) 434 B
#!/usr/bin/env node 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();