+// eslint-disable @typescript-eslint/no-unnecessary-type-assertion
+
import { registerTSPaths } from '../helpers/register-ts-paths'
registerTSPaths()
const plugins: PeerTubePlugin[] = res.body.data
const table = new CliTable3({
- head: ['name', 'version', 'homepage'],
+ head: [ 'name', 'version', 'homepage' ],
colWidths: [ 50, 10, 50 ]
- }) as CliTable3.HorizontalTable
+ }) as any
for (const plugin of plugins) {
const npmName = plugin.type === PluginType.PLUGIN
} catch (err) {
console.error('Cannot install plugin.', err)
process.exit(-1)
- return
}
console.log('Plugin installed.')
} catch (err) {
console.error('Cannot update plugin.', err)
process.exit(-1)
- return
}
console.log('Plugin updated.')
await uninstallPlugin({
url,
accessToken,
- npmName: options[ 'npmName' ]
+ npmName: options['npmName']
})
} catch (err) {
console.error('Cannot uninstall plugin.', err)
process.exit(-1)
- return
}
console.log('Plugin uninstalled.')