Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
4286cedc2e1c2c17ebdc2869ebf1f27f8951841d
Branches
master
Files
Commits
Log
Graph
Stats
ramdisk.git
src
command
stop.js
RSS
Git
Fetch origin
Download
ZIP
TAR
Clone
Raw
View
History
Clone
SSH
HTTPS
Blames found: 7
Mode: javascript
Binary: false
Hang on, we reloading big blames...
a7998c18
const commander = require('commander'); // install commander
f9a09ec6
.command('stop <uid>')
a7998c18
.description(` Stop a p3x-ramdisk `) // .option('-d, --dry', 'Do not actually remove packages, just show what it does')
f9a09ec6
.action(async function (uid, options) {
a7998c18
const stop= require('../index').stop; try {
f9a09ec6
await stop({ uid: uid });
a7998c18
} catch(e) { console.error(e.message); process.exit(1); } }) ;