aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools/peertube.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.ts
parenta22046d166805222ca76060e471b6cb3d419a32d (diff)
downloadPeerTube-a15871560f80e07386c1dabb8370cd2664ecfd1f.tar.gz
PeerTube-a15871560f80e07386c1dabb8370cd2664ecfd1f.tar.zst
PeerTube-a15871560f80e07386c1dabb8370cd2664ecfd1f.zip
Move to eslintcontain
Diffstat (limited to 'server/tools/peertube.ts')
-rw-r--r--server/tools/peertube.ts23
1 files changed, 12 insertions, 11 deletions
diff --git a/server/tools/peertube.ts b/server/tools/peertube.ts
index 9883bbf05..88dd5f7f6 100644
--- a/server/tools/peertube.ts
+++ b/server/tools/peertube.ts
@@ -1,13 +1,12 @@
1#!/usr/bin/env node 1#!/usr/bin/env node
2 2
3/* eslint-disable no-useless-escape */
4
3import { registerTSPaths } from '../helpers/register-ts-paths' 5import { registerTSPaths } from '../helpers/register-ts-paths'
4registerTSPaths() 6registerTSPaths()
5 7
6import * as program from 'commander' 8import * as program from 'commander'
7import { 9import { getSettings, version } from './cli'
8 version,
9 getSettings
10} from './cli'
11 10
12program 11program
13 .version(version, '-v, --version') 12 .version(version, '-v, --version')
@@ -26,14 +25,15 @@ program
26 25
27/* Not Yet Implemented */ 26/* Not Yet Implemented */
28program 27program
29 .command('diagnostic [action]', 28 .command(
30 'like couple therapy, but for your instance', 29 'diagnostic [action]',
31 { noHelp: true } as program.CommandOptions 30 'like couple therapy, but for your instance',
32 ).alias('d') 31 { noHelp: true } as program.CommandOptions
32 ).alias('d')
33 .command('admin', 33 .command('admin',
34 'manage an instance where you have elevated rights', 34 'manage an instance where you have elevated rights',
35 { noHelp: true } as program.CommandOptions 35 { noHelp: true } as program.CommandOptions
36 ).alias('a') 36 ).alias('a')
37 37
38// help on no command 38// help on no command
39if (!process.argv.slice(2).length) { 39if (!process.argv.slice(2).length) {
@@ -82,3 +82,4 @@ getSettings()
82 }) 82 })
83 .parse(process.argv) 83 .parse(process.argv)
84 }) 84 })
85 .catch(err => console.error(err))