UNPKG

orgdo

Version:

Command-line tool to manage the Todo lists

17 lines (16 loc) 542 B
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const yargs = require("yargs"); const path = require("path"); const updateNotifier = require("update-notifier"); updateNotifier({ pkg: require("../../package.json") }).notify(); yargs .commandDir("cmds", { extensions: path.extname(__filename) === ".ts" ? ["ts", "js"] : ["js"] }) .demandCommand(1, `Run 'orgdo <subcommand> --help' for more information on a command.`) .recommendCommands() .strict() .help() .parse();