todo4/easystart.js

10 lines
230 B
JavaScript
Executable File

#!/usr/bin/env node
var repl = require('repl');
var user = process.argv[2]||'me';
var todo=require('./nice')(user);
var context=repl.start(user+'> ').context;
context.todo=todo;
Object.keys(todo).forEach(k=>context[k]=todo[k]);