* Introduced `CommandLine` class for handling command line options and arguments * Added `TestConfiguration` class to manage application credentials and URIs * Implemented example usage for generating command line arguments from a configuration object * Updated `package.json` to include `commander` dependency * Removed unused `TestRunner` class and created a new `TestRunner` for executing tests with command line options * Adjusted logging level type to use lowercase values for consistency
24 lines
542 B
TypeScript
24 lines
542 B
TypeScript
import PCastAPI from '@techniker-me/pcast-api';
|
|
import RtmpPush from '@technniker-me/rtmp-push';
|
|
import CommandLine from '../config/CommandLine';
|
|
|
|
interface CommandLineOptions {
|
|
applicationId: string;
|
|
secret: string;
|
|
logLevel: string;
|
|
}
|
|
|
|
class TestRunner {
|
|
private static readonly _commandLineOptions: CommandLineOptions = CommandLine.parse(process.argv);
|
|
|
|
public static main(): void {
|
|
// const testRunner = new TestRunner();
|
|
// testRunner.run();
|
|
|
|
console.log(TestRunner._commandLineOptions);
|
|
}
|
|
}
|
|
|
|
TestRunner.main();
|
|
|