aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools')
-rw-r--r--server/tools/cli.ts3
-rwxr-xr-xserver/tools/peertube.ts2
2 files changed, 2 insertions, 3 deletions
diff --git a/server/tools/cli.ts b/server/tools/cli.ts
index 87d1512a3..53b20964e 100644
--- a/server/tools/cli.ts
+++ b/server/tools/cli.ts
@@ -1,8 +1,7 @@
1const config = require('application-config')('PeerTube/CLI') 1const config = require('application-config')('PeerTube/CLI')
2const netrc = require('netrc-parser').default 2const netrc = require('netrc-parser').default
3import { getVersion } from '../helpers/utils'
4 3
5const version = getVersion 4const version = require('../../../package.json').version
6 5
7let settings = { 6let settings = {
8 remotes: [], 7 remotes: [],
diff --git a/server/tools/peertube.ts b/server/tools/peertube.ts
index 21609deed..ad76bafb4 100755
--- a/server/tools/peertube.ts
+++ b/server/tools/peertube.ts
@@ -7,7 +7,7 @@ import {
7} from './cli' 7} from './cli'
8 8
9program 9program
10 .version(version(), '-v, --version') 10 .version(version, '-v, --version')
11 .usage('[command] [options]') 11 .usage('[command] [options]')
12 12
13/* Subcommands automatically loaded in the directory and beginning by peertube-* */ 13/* Subcommands automatically loaded in the directory and beginning by peertube-* */