Added command colour configuration
This commit is contained in:
@@ -293,7 +293,7 @@ def prompt_user_input(config, response):
|
||||
response : str
|
||||
The proposed command which is to be printed and may be executed by the user.
|
||||
"""
|
||||
print("Command: " + colored(response, 'blue'))
|
||||
print("Command: " + colored(response, config["suggested_command_color"], attrs=['bold']))
|
||||
|
||||
if config["safety"]:
|
||||
modify_text = ""
|
||||
@@ -301,6 +301,7 @@ def prompt_user_input(config, response):
|
||||
if config["modify"]:
|
||||
modify_text = " [m]modify"
|
||||
|
||||
# TODO: Copy to clipboard flag
|
||||
prompt_text = "Execute command? [Y]es [n]o" + modify_text + ": "
|
||||
|
||||
if os.name == "posix" and missing_posix_display():
|
||||
|
||||
Reference in New Issue
Block a user