ucloud-setup/app/scheduler.py

16 lines
350 B
Python
Raw Normal View History

2019-08-27 08:31:22 +00:00
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)