Add peertube-runner version info

This commit is contained in:
Chocobozzz 2023-05-09 10:45:37 +02:00
parent 8d5ffb0169
commit 5b2ee4e6ca
No known key found for this signature in database
GPG Key ID: 583A612D890159BE

View File

@ -5,7 +5,10 @@ import { listRegistered, registerRunner, unregisterRunner } from './register'
import { RunnerServer } from './server' import { RunnerServer } from './server'
import { ConfigManager, logger } from './shared' import { ConfigManager, logger } from './shared'
const packageJSON = require('./package.json')
const program = new Command() const program = new Command()
.version(packageJSON.version)
.option( .option(
'--id <id>', '--id <id>',
'Runner server id, so you can run multiple PeerTube server runners with different configurations on the same machine', 'Runner server id, so you can run multiple PeerTube server runners with different configurations on the same machine',