Skip to content

Commit

Permalink
fix: jans-cli seperation char (ref: #1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Sep 20, 2022
1 parent 22f23a4 commit 204daf8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jans-cli/cli/config_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,10 +793,14 @@ def get_input(self, values=[], text='Selection', default=None, itype=None,
print(' ' * spacing, self.colored_text('«{}»'.format(help_text), 244), sep='')

if example:
join_char = '_,' if itype == 'array' else ', '
if isinstance(example, list):
example_str = ', '.join(example)
example_str = join_char.join(example)
else:
example_str = str(example)
if join_char == '_,':
example_str = example_str.replace(' ', join_char)

print(' ' * spacing, self.colored_text('Example: {}'.format(example_str), 244), sep='')

if not default is None:
Expand Down

0 comments on commit 204daf8

Please sign in to comment.