Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
2e22797fa98ad8dcb6c4168ee4c9886c7fdee19a
Branches
master
Files
Commits
Log
Graph
Stats
ramdisk.git
src
command
watch.js
RSS
Git
Fetch origin
Download
ZIP
TAR
Clone
Raw
View
History
Clone
SSH
HTTPS
Blames found: 5
Mode: javascript
Binary: false
Hang on, we reloading big blames...
a7998c18
const commander = require('commander'); // install commander .command('watch') .description(` Watch the p3x-ramdisk `)
600f492e
.option('-w, --watch [milliseconds]', 'The time for watching, default is 1000 milliseconds')
a7998c18
// .option('-d, --dry', 'Do not actually remove packages, just show what it does') .action(async function (options) { const watch = require('../index').watch; try {
600f492e
await watch(options);
a7998c18
} catch(e) { console.error(e.message); process.exit(1); } }) ;