10 lines
230 B
JavaScript
10 lines
230 B
JavaScript
|
#!/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]);
|