aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools/peertube-plugins.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-31 16:56:52 +0100
committerChocobozzz <me@florianbigard.com>2020-02-03 08:31:02 +0100
commita15871560f80e07386c1dabb8370cd2664ecfd1f (patch)
tree44440e140c9e43b0d7f97ade777a76e649e0553d /server/tools/peertube-plugins.ts
parenta22046d166805222ca76060e471b6cb3d419a32d (diff)
downloadPeerTube-a15871560f80e07386c1dabb8370cd2664ecfd1f.tar.gz
PeerTube-a15871560f80e07386c1dabb8370cd2664ecfd1f.tar.zst
PeerTube-a15871560f80e07386c1dabb8370cd2664ecfd1f.zip
Move to eslintcontain
Diffstat (limited to 'server/tools/peertube-plugins.ts')
-rw-r--r--server/tools/peertube-plugins.ts11
1 files changed, 5 insertions, 6 deletions
diff --git a/server/tools/peertube-plugins.ts b/server/tools/peertube-plugins.ts
index b341c14c1..05b75fab2 100644
--- a/server/tools/peertube-plugins.ts
+++ b/server/tools/peertube-plugins.ts
@@ -1,3 +1,5 @@
1// eslint-disable @typescript-eslint/no-unnecessary-type-assertion
2
1import { registerTSPaths } from '../helpers/register-ts-paths' 3import { registerTSPaths } from '../helpers/register-ts-paths'
2registerTSPaths() 4registerTSPaths()
3 5
@@ -79,9 +81,9 @@ async function pluginsListCLI () {
79 const plugins: PeerTubePlugin[] = res.body.data 81 const plugins: PeerTubePlugin[] = res.body.data
80 82
81 const table = new CliTable3({ 83 const table = new CliTable3({
82 head: ['name', 'version', 'homepage'], 84 head: [ 'name', 'version', 'homepage' ],
83 colWidths: [ 50, 10, 50 ] 85 colWidths: [ 50, 10, 50 ]
84 }) as CliTable3.HorizontalTable 86 }) as any
85 87
86 for (const plugin of plugins) { 88 for (const plugin of plugins) {
87 const npmName = plugin.type === PluginType.PLUGIN 89 const npmName = plugin.type === PluginType.PLUGIN
@@ -124,7 +126,6 @@ async function installPluginCLI (options: any) {
124 } catch (err) { 126 } catch (err) {
125 console.error('Cannot install plugin.', err) 127 console.error('Cannot install plugin.', err)
126 process.exit(-1) 128 process.exit(-1)
127 return
128 } 129 }
129 130
130 console.log('Plugin installed.') 131 console.log('Plugin installed.')
@@ -156,7 +157,6 @@ async function updatePluginCLI (options: any) {
156 } catch (err) { 157 } catch (err) {
157 console.error('Cannot update plugin.', err) 158 console.error('Cannot update plugin.', err)
158 process.exit(-1) 159 process.exit(-1)
159 return
160 } 160 }
161 161
162 console.log('Plugin updated.') 162 console.log('Plugin updated.')
@@ -177,12 +177,11 @@ async function uninstallPluginCLI (options: any) {
177 await uninstallPlugin({ 177 await uninstallPlugin({
178 url, 178 url,
179 accessToken, 179 accessToken,
180 npmName: options[ 'npmName' ] 180 npmName: options['npmName']
181 }) 181 })
182 } catch (err) { 182 } catch (err) {
183 console.error('Cannot uninstall plugin.', err) 183 console.error('Cannot uninstall plugin.', err)
184 process.exit(-1) 184 process.exit(-1)
185 return
186 } 185 }
187 186
188 console.log('Plugin uninstalled.') 187 console.log('Plugin uninstalled.')