diff options
author | Chocobozzz <me@florianbigard.com> | 2018-10-03 14:35:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-10-03 14:36:00 +0200 |
commit | 499d9015955c0cedd094fbe814dee6235e639627 (patch) | |
tree | b5116cb74b7f2a6ba39dfdc7eda76d2db31e0ca5 /server/tools | |
parent | 6a6951ec103e495160b0e4641ea9bbf8014789c3 (diff) | |
download | PeerTube-499d9015955c0cedd094fbe814dee6235e639627.tar.gz PeerTube-499d9015955c0cedd094fbe814dee6235e639627.tar.zst PeerTube-499d9015955c0cedd094fbe814dee6235e639627.zip |
Fix config endpoint
Diffstat (limited to 'server/tools')
-rw-r--r-- | server/tools/cli.ts | 3 | ||||
-rwxr-xr-x | server/tools/peertube.ts | 2 |
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 @@ | |||
1 | const config = require('application-config')('PeerTube/CLI') | 1 | const config = require('application-config')('PeerTube/CLI') |
2 | const netrc = require('netrc-parser').default | 2 | const netrc = require('netrc-parser').default |
3 | import { getVersion } from '../helpers/utils' | ||
4 | 3 | ||
5 | const version = getVersion | 4 | const version = require('../../../package.json').version |
6 | 5 | ||
7 | let settings = { | 6 | let 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 | ||
9 | program | 9 | program |
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-* */ |