fix: display user-data instead of user_data in version
This commit is contained in:
parent
f5f85ba79f
commit
aa5c2f773c
1 changed files with 2 additions and 1 deletions
|
|
@ -88,6 +88,7 @@ def _main():
|
||||||
from . import __version__
|
from . import __version__
|
||||||
print(f'rougail-cli: {__version__}')
|
print(f'rougail-cli: {__version__}')
|
||||||
for step in ['structural', 'user_data', 'output']:
|
for step in ['structural', 'user_data', 'output']:
|
||||||
|
display_step = step.replace('_', '-')
|
||||||
for step_name in sorted(cmd_config.option(f'step.{step}').value.list()):
|
for step_name in sorted(cmd_config.option(f'step.{step}').value.list()):
|
||||||
path = (
|
path = (
|
||||||
Path(__file__).parent.parent
|
Path(__file__).parent.parent
|
||||||
|
|
@ -97,7 +98,7 @@ def _main():
|
||||||
if path.is_file():
|
if path.is_file():
|
||||||
try:
|
try:
|
||||||
module = load_modules("rougail." + step + '_' + step_name, str(path))
|
module = load_modules("rougail." + step + '_' + step_name, str(path))
|
||||||
print(f'rougail-{step}-{step_name}: {module.__version__}')
|
print(f'rougail-{display_step}-{step_name}: {module.__version__}')
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
pass
|
pass
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue