From 78aa9079158cbbf3c01facb4a3f1a76358b4258a Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Thu, 30 Apr 2020 19:50:24 -0300 Subject: Fix bugs in the new config system --- ganarchy/cli/debug.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ganarchy/cli') diff --git a/ganarchy/cli/debug.py b/ganarchy/cli/debug.py index 5bff054..95ad045 100644 --- a/ganarchy/cli/debug.py +++ b/ganarchy/cli/debug.py @@ -33,6 +33,20 @@ def paths(): click.echo('Data home: {}'.format(ganarchy.data_home)) def print_data_source(data_source): + if ganarchy.data.DataProperty.INSTANCE_TITLE in data_source.get_supported_properties(): + try: + title = data_source.get_property_value(ganarchy.data.DataProperty.INSTANCE_TITLE) + except LookupError: + title = None + click.echo("\tTitle: {}".format(title)) + + if ganarchy.data.DataProperty.INSTANCE_BASE_URL in data_source.get_supported_properties(): + try: + base_url = data_source.get_property_value(ganarchy.data.DataProperty.INSTANCE_BASE_URL) + except LookupError: + base_url = None + click.echo("\tBase URL: {}".format(base_url)) + if ganarchy.data.DataProperty.REPO_LIST_SOURCES in data_source.get_supported_properties(): click.echo("\tRepo list sources:") try: -- cgit 1.4.1