mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Update server dependencies
This commit is contained in:
parent
29f148a613
commit
ba5a8d89bb
42 changed files with 1322 additions and 1553 deletions
|
@ -9,7 +9,9 @@ program
|
|||
.option('-n, --npm-name [npmName]', 'Package name to install')
|
||||
.parse(process.argv)
|
||||
|
||||
if (!program['npmName']) {
|
||||
const options = program.opts()
|
||||
|
||||
if (!options.npmName) {
|
||||
console.error('You need to specify the plugin name.')
|
||||
process.exit(-1)
|
||||
}
|
||||
|
@ -25,6 +27,6 @@ async function run () {
|
|||
|
||||
await initDatabaseModels(true)
|
||||
|
||||
const toUninstall = program['npmName']
|
||||
const toUninstall = options.npmName
|
||||
await PluginManager.Instance.uninstall(toUninstall)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue