todo4/easystart.js

10 lines
230 B
JavaScript
Raw Normal View History

2024-07-26 20:02:43 -04:00
#!/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]);