diff --git a/moulinette/interfaces/api.py b/moulinette/interfaces/api.py index c8be5558..c155d7a3 100644 --- a/moulinette/interfaces/api.py +++ b/moulinette/interfaces/api.py @@ -473,7 +473,7 @@ class _ActionsMapPlugin(object): else: queue.put(StopIteration) - def display(self, message, style): + def display(self, message, style="info"): s_id = Sesson.get_infos()["id"] try: diff --git a/moulinette/interfaces/cli.py b/moulinette/interfaces/cli.py index ed7fcbc3..2976f34e 100644 --- a/moulinette/interfaces/cli.py +++ b/moulinette/interfaces/cli.py @@ -529,7 +529,7 @@ class Interface: credentials = self.prompt(msg, True, False, color="yellow") return authenticator.authenticate_credentials(credentials=credentials) - def prompt(self, message, is_password, confirm, color="blue"): + def prompt(self, message, is_password=False, confirm=False, color="blue"): """Prompt for a value Keyword arguments: @@ -552,7 +552,7 @@ class Interface: return value - def display(self, message, style): + def display(self, message, style="info"): """Display a message """