openvidu/openvidu-server/docker/openvidu-deployment-tester/src/main.py

25 lines
804 B
Python

import cli_utils
import utils
import tests
# Define your commands here
def install_drivers(args):
cli_utils.print_args(args)
utils.install_drivers(args.chrome_version, args.gecko_version)
# Define the command-line arguments
parser = cli_utils.initialize_parser()
# Parse the command-line arguments and call the appropriate command with its arguments
args = parser.parse_args()
if hasattr(args, "openvidu_url") and args.openvidu_url.endswith("/"):
args.openvidu_url = args.openvidu_url[:-1]
if hasattr(args, "openvidu_secret"):
args.openvidu_url = utils.authenticated_url(args.openvidu_url, args.openvidu_secret)
if args.command == "install-drivers":
install_drivers(args)
elif args.command == "basic-test":
tests.basic_test(args)
else:
print("Error: No command specified")