#!/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')
.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 instance plugins/themes').alias('p')
+ .command('redundancy [action]', 'manage instance redundancies').alias('r')
/* Not Yet Implemented */
program
- .command('plugins [action]',
- 'manage plugins on a local instance',
- { noHelp: true } as program.CommandOptions
- ).alias('p')
- .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) {
})
.parse(process.argv)
})
+ .catch(err => console.error(err))