1
0
Fork 0

Add project list output

Dieser Commit ist enthalten in:
SoniEx2 2019-06-20 12:54:01 -03:00
Ursprung 752f4d36ad
Commit 0e27c8baf4
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -547,6 +547,11 @@ def cron_target(project):
template = env.get_template('index.toml')
click.echo(template.render(config = conf))
return
if project == "project-list":
# could be done with a template but eh w/e, this is probably better
for project in conf.projects.keys():
click.echo(project)
return
# make sure the cache dir exists
os.makedirs(cache_home, exist_ok=True)
# make sure it is a git repo