diff options
Diffstat (limited to 'server/tools/peertube-plugins.ts')
-rw-r--r-- | server/tools/peertube-plugins.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/server/tools/peertube-plugins.ts b/server/tools/peertube-plugins.ts index 08e8cd713..c8a576844 100644 --- a/server/tools/peertube-plugins.ts +++ b/server/tools/peertube-plugins.ts | |||
@@ -24,7 +24,7 @@ program | |||
24 | .option('-p, --password <token>', 'Password') | 24 | .option('-p, --password <token>', 'Password') |
25 | .option('-t, --only-themes', 'List themes only') | 25 | .option('-t, --only-themes', 'List themes only') |
26 | .option('-P, --only-plugins', 'List plugins only') | 26 | .option('-P, --only-plugins', 'List plugins only') |
27 | .action(() => pluginsListCLI()) | 27 | .action((options, command) => pluginsListCLI(command, options)) |
28 | 28 | ||
29 | program | 29 | program |
30 | .command('install') | 30 | .command('install') |
@@ -61,12 +61,10 @@ if (!process.argv.slice(2).length) { | |||
61 | 61 | ||
62 | program.parse(process.argv) | 62 | program.parse(process.argv) |
63 | 63 | ||
64 | const options = program.opts() | ||
65 | |||
66 | // ---------------------------------------------------------------------------- | 64 | // ---------------------------------------------------------------------------- |
67 | 65 | ||
68 | async function pluginsListCLI () { | 66 | async function pluginsListCLI (command: commander.CommanderStatic, options: commander.OptionValues) { |
69 | const { url, username, password } = await getServerCredentials(program) | 67 | const { url, username, password } = await getServerCredentials(command) |
70 | const accessToken = await getAdminTokenOrDie(url, username, password) | 68 | const accessToken = await getAdminTokenOrDie(url, username, password) |
71 | 69 | ||
72 | let pluginType: PluginType | 70 | let pluginType: PluginType |