mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Missing default arg values for prompt/display
This commit is contained in:
parent
67d9c9cdd1
commit
8c8c1d4829
2 changed files with 3 additions and 3 deletions
|
@ -473,7 +473,7 @@ class _ActionsMapPlugin(object):
|
||||||
else:
|
else:
|
||||||
queue.put(StopIteration)
|
queue.put(StopIteration)
|
||||||
|
|
||||||
def display(self, message, style):
|
def display(self, message, style="info"):
|
||||||
|
|
||||||
s_id = Sesson.get_infos()["id"]
|
s_id = Sesson.get_infos()["id"]
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -529,7 +529,7 @@ class Interface:
|
||||||
credentials = self.prompt(msg, True, False, color="yellow")
|
credentials = self.prompt(msg, True, False, color="yellow")
|
||||||
return authenticator.authenticate_credentials(credentials=credentials)
|
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
|
"""Prompt for a value
|
||||||
|
|
||||||
Keyword arguments:
|
Keyword arguments:
|
||||||
|
@ -552,7 +552,7 @@ class Interface:
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
|
||||||
def display(self, message, style):
|
def display(self, message, style="info"):
|
||||||
"""Display a message
|
"""Display a message
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue