aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools/cli.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-28 14:30:10 +0100
committerChocobozzz <me@florianbigard.com>2020-01-28 14:30:10 +0100
commit2f1756a03ccf3546f9bbcd98bc149e350d3d950a (patch)
tree501195171448a38b27962c3c821d816819409ee7 /server/tools/cli.ts
parent005b51b977e624b64107ccd10594920e5a6c264c (diff)
downloadPeerTube-2f1756a03ccf3546f9bbcd98bc149e350d3d950a.tar.gz
PeerTube-2f1756a03ccf3546f9bbcd98bc149e350d3d950a.tar.zst
PeerTube-2f1756a03ccf3546f9bbcd98bc149e350d3d950a.zip
Optimize peertube script
Diffstat (limited to 'server/tools/cli.ts')
-rw-r--r--server/tools/cli.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/tools/cli.ts b/server/tools/cli.ts
index ba80872fb..15ac6c6a8 100644
--- a/server/tools/cli.ts
+++ b/server/tools/cli.ts
@@ -6,8 +6,9 @@ import { getVideoChannel } from '../../shared/extra-utils/videos/video-channels'
6import { Command } from 'commander' 6import { Command } from 'commander'
7import { VideoChannel, VideoPrivacy } from '../../shared/models/videos' 7import { VideoChannel, VideoPrivacy } from '../../shared/models/videos'
8import { createLogger, format, transports } from 'winston' 8import { createLogger, format, transports } from 'winston'
9import { getAccessToken, getMyUserInformation } from '@shared/extra-utils' 9import { getMyUserInformation } from '@shared/extra-utils/users/users'
10import { User, UserRole } from '@shared/models' 10import { User, UserRole } from '@shared/models'
11import { getAccessToken } from '@shared/extra-utils/users/login'
11 12
12let configName = 'PeerTube/CLI' 13let configName = 'PeerTube/CLI'
13if (isTestInstance()) configName += `-${getAppNumber()}` 14if (isTestInstance()) configName += `-${getAppNumber()}`