Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
0a253c62f437ed9f4c6e2d86bd2f1e1699585193
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: 13
Mode: javascript
Binary: false
Hang on, we reloading big blames...
7ae7aa94
const { program } = require('commander');
a7998c18
// install
7ae7aa94
program
f9a09ec6
.command('watch <uid>')
a7998c18
.description(`
7ae7aa94
Watch the p3x-ramdisk
a7998c18
`)
600f492e
.option('-w, --watch [milliseconds]', 'The time for watching, default is 1000 milliseconds')
724156a2
// .option('-d, --dry', 'Do not actually remove packages, just show what it does')
f9a09ec6
.action(async function (uid, options) {
a7998c18
const watch = require('../index').watch; try {
724156a2
await watch({uid: uid}, options); } catch (e) {
a7998c18
console.error(e.message); process.exit(1); } }) ;