From 0e27c8baf4f99a8b0bdc52b0d03aba0e49ad95d0 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Thu, 20 Jun 2019 12:54:01 -0300 Subject: [PATCH] Add project list output --- ganarchy.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ganarchy.py b/ganarchy.py index 9278429..c2e59f2 100755 --- a/ganarchy.py +++ b/ganarchy.py @@ -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