X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftools%2Fpeertube.ts;h=88dd5f7f6ced53d831a2c7cd912fbabd3fe04ba4;hb=212e17a1892162a69138c0b9c0a1bd88f95209a8;hp=fc85c421097c17056695fcda67cbce9d23e9a376;hpb=2aaa1a3fdc49be77aec5309dab5507865c38d392;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tools/peertube.ts b/server/tools/peertube.ts index fc85c4210..88dd5f7f6 100644 --- a/server/tools/peertube.ts +++ b/server/tools/peertube.ts @@ -1,13 +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') @@ -22,17 +21,19 @@ program .command('watch', 'watch a video in the terminal ✩°。⋆').alias('w') .command('repl', 'initiate a REPL to access internals') .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) { @@ -81,3 +82,4 @@ getSettings() }) .parse(process.argv) }) + .catch(err => console.error(err))