From 3677af203c383783c1be54bc512406a699173623 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Mon, 15 Jul 2019 17:31:08 -0300 Subject: Add debugging --- ganarchy.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ganarchy.py b/ganarchy.py index 32add6f..bcc094e 100755 --- a/ganarchy.py +++ b/ganarchy.py @@ -510,6 +510,20 @@ class Config: if remove and not active: branch['active'] = False +def debug(): + @ganarchy.group() + def debug(): + pass + + @debug.command() + def paths(): + click.echo('Config home: {}'.format(config_home)) + click.echo('Additional config search path: {}'.format(config_dirs)) + click.echo('Cache home: {}'.format(cache_home)) + click.echo('Data home: {}'.format(data_home)) + +debug() + @ganarchy.command() @click.option('--skip-errors/--no-skip-errors', default=False) @click.argument('files', type=click.File('r', encoding='utf-8'), nargs=-1) -- cgit 1.4.1