aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools')
-rw-r--r--server/tools/peertube-auth.ts5
-rw-r--r--server/tools/peertube-import-videos.ts3
-rw-r--r--server/tools/peertube-plugins.ts2
-rw-r--r--server/tools/peertube-redundancy.ts2
4 files changed, 7 insertions, 5 deletions
diff --git a/server/tools/peertube-auth.ts b/server/tools/peertube-auth.ts
index b9f4ef4f8..afa19ee08 100644
--- a/server/tools/peertube-auth.ts
+++ b/server/tools/peertube-auth.ts
@@ -4,10 +4,11 @@ import { registerTSPaths } from '../helpers/register-ts-paths'
4registerTSPaths() 4registerTSPaths()
5 5
6import { OptionValues, program } from 'commander' 6import { OptionValues, program } from 'commander'
7import * as prompt from 'prompt'
8import { assignToken, buildServer, getNetrc, getSettings, writeSettings } from './cli' 7import { assignToken, buildServer, getNetrc, getSettings, writeSettings } from './cli'
9import { isUserUsernameValid } from '../helpers/custom-validators/users' 8import { isUserUsernameValid } from '../helpers/custom-validators/users'
10import * as CliTable3 from 'cli-table3' 9import CliTable3 from 'cli-table3'
10
11import prompt = require('prompt')
11 12
12async function delInstance (url: string) { 13async function delInstance (url: string) {
13 const [ settings, netrc ] = await Promise.all([ getSettings(), getNetrc() ]) 14 const [ settings, netrc ] = await Promise.all([ getSettings(), getNetrc() ])
diff --git a/server/tools/peertube-import-videos.ts b/server/tools/peertube-import-videos.ts
index 488109b7a..758b561e1 100644
--- a/server/tools/peertube-import-videos.ts
+++ b/server/tools/peertube-import-videos.ts
@@ -6,7 +6,6 @@ import { accessSync, constants } from 'fs'
6import { remove } from 'fs-extra' 6import { remove } from 'fs-extra'
7import { truncate } from 'lodash' 7import { truncate } from 'lodash'
8import { join } from 'path' 8import { join } from 'path'
9import * as prompt from 'prompt'
10import { promisify } from 'util' 9import { promisify } from 'util'
11import { YoutubeDL } from '@server/helpers/youtube-dl' 10import { YoutubeDL } from '@server/helpers/youtube-dl'
12import { sha256 } from '../helpers/core-utils' 11import { sha256 } from '../helpers/core-utils'
@@ -22,6 +21,8 @@ import {
22} from './cli' 21} from './cli'
23import { PeerTubeServer } from '@shared/extra-utils' 22import { PeerTubeServer } from '@shared/extra-utils'
24 23
24import prompt = require('prompt')
25
25const processOptions = { 26const processOptions = {
26 maxBuffer: Infinity 27 maxBuffer: Infinity
27} 28}
diff --git a/server/tools/peertube-plugins.ts b/server/tools/peertube-plugins.ts
index d9c285115..ae625114d 100644
--- a/server/tools/peertube-plugins.ts
+++ b/server/tools/peertube-plugins.ts
@@ -7,7 +7,7 @@ import { program, Command, OptionValues } from 'commander'
7import { assignToken, buildServer, getServerCredentials } from './cli' 7import { assignToken, buildServer, getServerCredentials } from './cli'
8import { PluginType } from '../../shared/models' 8import { PluginType } from '../../shared/models'
9import { isAbsolute } from 'path' 9import { isAbsolute } from 'path'
10import * as CliTable3 from 'cli-table3' 10import CliTable3 from 'cli-table3'
11 11
12program 12program
13 .name('plugins') 13 .name('plugins')
diff --git a/server/tools/peertube-redundancy.ts b/server/tools/peertube-redundancy.ts
index 73b026ac8..7e27ca49e 100644
--- a/server/tools/peertube-redundancy.ts
+++ b/server/tools/peertube-redundancy.ts
@@ -1,7 +1,7 @@
1import { registerTSPaths } from '../helpers/register-ts-paths' 1import { registerTSPaths } from '../helpers/register-ts-paths'
2registerTSPaths() 2registerTSPaths()
3 3
4import * as CliTable3 from 'cli-table3' 4import CliTable3 from 'cli-table3'
5import { Command, program } from 'commander' 5import { Command, program } from 'commander'
6import { uniq } from 'lodash' 6import { uniq } from 'lodash'
7import { URL } from 'url' 7import { URL } from 'url'