X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftools%2Fpeertube.ts;h=88dd5f7f6ced53d831a2c7cd912fbabd3fe04ba4;hb=439d68e53766d48e7316aab6b6f78cd555247f6e;hp=e79a7e0419a336ec15ca78b498950c35ebf81222;hpb=8d2be0ed7bb87283a1ec98609df6b82d83db706a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tools/peertube.ts b/server/tools/peertube.ts index e79a7e041..88dd5f7f6 100644 --- a/server/tools/peertube.ts +++ b/server/tools/peertube.ts @@ -1,10 +1,12 @@ #!/usr/bin/env node +/* eslint-disable no-useless-escape */ + +import { registerTSPaths } from '../helpers/register-ts-paths' +registerTSPaths() + import * as program from 'commander' -import { - version, - getSettings -} from './cli' +import { getSettings, version } from './cli' program .version(version, '-v, --version') @@ -18,18 +20,20 @@ program .command('get-access-token', 'get a peertube access token', { noHelp: true }).alias('token') .command('watch', 'watch a video in the terminal ✩°。⋆').alias('w') .command('repl', 'initiate a REPL to access internals') - .command('plugins [action]', 'manage plugins on a local instance').alias('p') + .command('plugins [action]', 'manage instance plugins/themes').alias('p') + .command('redundancy [action]', 'manage instance redundancies').alias('r') /* Not Yet Implemented */ program - .command('diagnostic [action]', - 'like couple therapy, but for your instance', - { noHelp: true } as program.CommandOptions - ).alias('d') + .command( + 'diagnostic [action]', + 'like couple therapy, but for your instance', + { noHelp: true } as program.CommandOptions + ).alias('d') .command('admin', - 'manage an instance where you have elevated rights', - { noHelp: true } as program.CommandOptions - ).alias('a') + 'manage an instance where you have elevated rights', + { noHelp: true } as program.CommandOptions + ).alias('a') // help on no command if (!process.argv.slice(2).length) { @@ -78,3 +82,4 @@ getSettings() }) .parse(process.argv) }) + .catch(err => console.error(err))