From 77a5a8c9f58ec84f99a909f8d26b24cd8ef1428a Mon Sep 17 00:00:00 2001 From: Joeri Exelmans Date: Thu, 22 Aug 2024 10:57:00 +0200 Subject: [PATCH] Bump dependency PyInquirer -> InquirerPy (former no longer supported) --- framework/interactive_prompt.py | 13 +++---------- framework/prompt_questions.py | 2 +- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/framework/interactive_prompt.py b/framework/interactive_prompt.py index 8a62272..55824a6 100644 --- a/framework/interactive_prompt.py +++ b/framework/interactive_prompt.py @@ -1,6 +1,6 @@ from framework.manager import Manager from state.devstate import DevState -from PyInquirer import prompt, Separator +from InquirerPy import prompt, separator from pprint import pprint import prompt_questions as questions from inspect import signature @@ -16,7 +16,7 @@ def generate_context_question(ctx_type, services): s.__name__.replace('_', ' ') for s in services ] choices = sorted(choices) - choices.append(Separator()) + choices.append(separator.Separator()) choices.append("close context") ctx_question = [ { @@ -94,12 +94,5 @@ def main(): if __name__ == '__main__': - print("""Welcome to... - __ ____ _____ - | \/ \ \ / /__ \ - | \ / |\ \ / / ) | - | |\/| | \ \/ / / / - | | | | \ / / /_ - |_| |_| \/ |____| - """) + print("""Welcome to...\r\n __ ____ _____ \r\n | \\/ \\ \\ / /__ \\ \r\n | \\ / |\\ \\ / / ) |\r\n | |\\/| | \\ \\/ / / / \r\n | | | | \\ / / /_ \r\n |_| |_| \\/ |____| """) main() diff --git a/framework/prompt_questions.py b/framework/prompt_questions.py index d71e1cc..d7b1637 100644 --- a/framework/prompt_questions.py +++ b/framework/prompt_questions.py @@ -1,4 +1,4 @@ -from PyInquirer import Separator +from InquirerPy.separator import Separator MODEL_SELECTED = [ {