Browse Source

Bump dependency PyInquirer -> InquirerPy (former no longer supported)

Joeri Exelmans 2 years ago
parent
commit
77a5a8c9f5
2 changed files with 4 additions and 11 deletions
  1. 3 10
      framework/interactive_prompt.py
  2. 1 1
      framework/prompt_questions.py

+ 3 - 10
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()

+ 1 - 1
framework/prompt_questions.py

@@ -1,4 +1,4 @@
-from PyInquirer import Separator
+from InquirerPy.separator import Separator
 
 MODEL_SELECTED = [
     {