INNER CODE UNIT · TypeScript

run

pgilad/leasot · src/cli/cli-reporter.ts:44

const run = (program: Command): void => {
    const options = program.opts();
    if (program.args && program.args.length > 0) {
        return parseAndReportFiles(program.args, options);
    }

    if (process.stdin.isTTY) {
        return program.help();
    }

    getStdin()
        .then(async function (content: string) {
            const todos = JSON.parse(content);
            await outputTodos(todos, options);
        })
        .catch(function (e) {
            console.error(e);
            process.exit(1);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…