Federated video streaming platform using ActivityPub and P2P in the web browser with Angular. https://joinpeertube.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
670 B

  1. import { program } from 'commander'
  2. import { initDatabaseModels } from '../../server/initializers/database'
  3. import { PluginManager } from '../../server/lib/plugins/plugin-manager'
  4. program
  5. .option('-n, --npm-name [npmName]', 'Package name to install')
  6. .parse(process.argv)
  7. const options = program.opts()
  8. if (!options.npmName) {
  9. console.error('You need to specify the plugin name.')
  10. process.exit(-1)
  11. }
  12. run()
  13. .then(() => process.exit(0))
  14. .catch(err => {
  15. console.error(err)
  16. process.exit(-1)
  17. })
  18. async function run () {
  19. await initDatabaseModels(true)
  20. const toUninstall = options.npmName
  21. await PluginManager.Instance.uninstall(toUninstall)
  22. }