Hypercubed/todo-md

View on GitHub
bin/todo

Summary

Maintainability
Test Coverage
#!/usr/bin/env node
'use strict';

var program = require('commander');

require('autocmdr/lib/logger')(program);
require('autocmdr/lib/loader')(program);
require('autocmdr/lib/completion')(program);
require('autocmdr/lib/package')(program);
require('autocmdr/lib/config')(program);

program.option('-g, --global', 'use global todo list (usually ~/todo.md)');

program
  .on('*', function (cmds) {
    program.parse(['', '', 'add'].concat(cmds));
  });

program.parse(process.argv);

if (program.args.length < 1) {
  program.parse(['', '', 'list']);
}