diff options
Diffstat (limited to 'server/tools')
-rw-r--r-- | server/tools/peertube-auth.ts | 5 | ||||
-rw-r--r-- | server/tools/peertube-import-videos.ts | 3 | ||||
-rw-r--r-- | server/tools/peertube-plugins.ts | 2 | ||||
-rw-r--r-- | server/tools/peertube-redundancy.ts | 2 |
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' | |||
4 | registerTSPaths() | 4 | registerTSPaths() |
5 | 5 | ||
6 | import { OptionValues, program } from 'commander' | 6 | import { OptionValues, program } from 'commander' |
7 | import * as prompt from 'prompt' | ||
8 | import { assignToken, buildServer, getNetrc, getSettings, writeSettings } from './cli' | 7 | import { assignToken, buildServer, getNetrc, getSettings, writeSettings } from './cli' |
9 | import { isUserUsernameValid } from '../helpers/custom-validators/users' | 8 | import { isUserUsernameValid } from '../helpers/custom-validators/users' |
10 | import * as CliTable3 from 'cli-table3' | 9 | import CliTable3 from 'cli-table3' |
10 | |||
11 | import prompt = require('prompt') | ||
11 | 12 | ||
12 | async function delInstance (url: string) { | 13 | async 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' | |||
6 | import { remove } from 'fs-extra' | 6 | import { remove } from 'fs-extra' |
7 | import { truncate } from 'lodash' | 7 | import { truncate } from 'lodash' |
8 | import { join } from 'path' | 8 | import { join } from 'path' |
9 | import * as prompt from 'prompt' | ||
10 | import { promisify } from 'util' | 9 | import { promisify } from 'util' |
11 | import { YoutubeDL } from '@server/helpers/youtube-dl' | 10 | import { YoutubeDL } from '@server/helpers/youtube-dl' |
12 | import { sha256 } from '../helpers/core-utils' | 11 | import { sha256 } from '../helpers/core-utils' |
@@ -22,6 +21,8 @@ import { | |||
22 | } from './cli' | 21 | } from './cli' |
23 | import { PeerTubeServer } from '@shared/extra-utils' | 22 | import { PeerTubeServer } from '@shared/extra-utils' |
24 | 23 | ||
24 | import prompt = require('prompt') | ||
25 | |||
25 | const processOptions = { | 26 | const 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' | |||
7 | import { assignToken, buildServer, getServerCredentials } from './cli' | 7 | import { assignToken, buildServer, getServerCredentials } from './cli' |
8 | import { PluginType } from '../../shared/models' | 8 | import { PluginType } from '../../shared/models' |
9 | import { isAbsolute } from 'path' | 9 | import { isAbsolute } from 'path' |
10 | import * as CliTable3 from 'cli-table3' | 10 | import CliTable3 from 'cli-table3' |
11 | 11 | ||
12 | program | 12 | program |
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 @@ | |||
1 | import { registerTSPaths } from '../helpers/register-ts-paths' | 1 | import { registerTSPaths } from '../helpers/register-ts-paths' |
2 | registerTSPaths() | 2 | registerTSPaths() |
3 | 3 | ||
4 | import * as CliTable3 from 'cli-table3' | 4 | import CliTable3 from 'cli-table3' |
5 | import { Command, program } from 'commander' | 5 | import { Command, program } from 'commander' |
6 | import { uniq } from 'lodash' | 6 | import { uniq } from 'lodash' |
7 | import { URL } from 'url' | 7 | import { URL } from 'url' |