Commit 03fb17c4 authored by Adrian DC's avatar Adrian DC
Browse files

feat(entrypoint): allow empty description and custom indent in 'confirm'

Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>
parent 56f7aba1
Loading
Loading
Loading
Loading
Loading
+2 −1
Changes for src/cli/entrypoint.py: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -240,11 +240,12 @@ class Entrypoint:
        text: str = '',
        interactive: bool = True,
        action: str = '',
        indent: str = '   ',
    ) -> bool:

        # Header
        print(
            f'{Colors.BOLD}   - {description}: Confirm "'
            f'{Colors.BOLD}{indent}- {description}{": " if description else ""}Confirm "'
            f'{Colors.RED}{text}'
            f'{Colors.BOLD}" {action}:'
            f'{Colors.RESET}', end='')