diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2020-04-30 19:50:24 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2020-04-30 19:50:24 -0300 |
commit | 78aa9079158cbbf3c01facb4a3f1a76358b4258a (patch) | |
tree | 0eda6b271b2ad40ff97a5ea185e19c9ea82c2939 /ganarchy/cli/debug.py | |
parent | b083832cc463265c6777b1c9d18cc50c45a30c27 (diff) |
Fix bugs in the new config system
Diffstat (limited to 'ganarchy/cli/debug.py')
-rw-r--r-- | ganarchy/cli/debug.py | 14 |
1 files changed, 14 insertions, 0 deletions
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: |