diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-06 09:55:05 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:16 +0200 |
commit | e8bd7ce7ccafe3e064b03978e9b512c1a4cc99e6 (patch) | |
tree | c888e13aca3fc239f46d44045df6bf8e2a2ef0d3 /shared/extra-utils/cli/cli.ts | |
parent | 329619b3453479f76c049816b7403b86e9d45cb5 (diff) | |
download | PeerTube-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.ts | 6 |
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 @@ | |||
1 | import { exec } from 'child_process' | 1 | import { exec } from 'child_process' |
2 | import { AbstractCommand } from '../shared' | 2 | import { AbstractCommand } from '../shared' |
3 | 3 | ||
4 | class CLICommand extends AbstractCommand { | 4 | export 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 | |||
25 | export { | ||
26 | CLICommand | ||
27 | } | ||