ucloud-setup/app/scheduler.py
2019-08-27 13:31:22 +05:00

16 lines
No EOL
350 B
Python

import click
import subprocess
@click.group()
def scheduler():
pass
@scheduler.command("setup")
def setup():
command = "git clone https://code.ungleich.ch/ungleich-public/ucloud-scheduler.git"
try:
subprocess.check_output(command.split())
except subprocess.CalledProcessError as e:
print("Some Error Occurrred", e)