aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/cli/cli.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-06 09:55:05 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:16 +0200
commite8bd7ce7ccafe3e064b03978e9b512c1a4cc99e6 (patch)
treec888e13aca3fc239f46d44045df6bf8e2a2ef0d3 /shared/extra-utils/cli/cli.ts
parent329619b3453479f76c049816b7403b86e9d45cb5 (diff)
downloadPeerTube-e8bd7ce7ccafe3e064b03978e9b512c1a4cc99e6.tar.gz
PeerTube-e8bd7ce7ccafe3e064b03978e9b512c1a4cc99e6.tar.zst
PeerTube-e8bd7ce7ccafe3e064b03978e9b512c1a4cc99e6.zip
Introduce CustomPage command
Diffstat (limited to 'shared/extra-utils/cli/cli.ts')
-rw-r--r--shared/extra-utils/cli/cli.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/shared/extra-utils/cli/cli.ts b/shared/extra-utils/cli/cli.ts
index 1bf100869..bc1dddc68 100644
--- a/shared/extra-utils/cli/cli.ts
+++ b/shared/extra-utils/cli/cli.ts
@@ -1,7 +1,7 @@
1import { exec } from 'child_process' 1import { exec } from 'child_process'
2import { AbstractCommand } from '../shared' 2import { AbstractCommand } from '../shared'
3 3
4class CLICommand extends AbstractCommand { 4export class CLICommand extends AbstractCommand {
5 5
6 static exec (command: string) { 6 static exec (command: string) {
7 return new Promise<string>((res, rej) => { 7 return new Promise<string>((res, rej) => {
@@ -21,7 +21,3 @@ class CLICommand extends AbstractCommand {
21 return CLICommand.exec(`${this.getEnv()} ${command}`) 21 return CLICommand.exec(`${this.getEnv()} ${command}`)
22 } 22 }
23} 23}
24
25export {
26 CLICommand
27}