prompt_questions.py 861 B

12345678910111213141516171819202122232425262728293031323334353637
  1. from PyInquirer import Separator
  2. MODEL_SELECTED = [
  3. {
  4. 'type': 'list',
  5. 'name': 'op',
  6. 'message': 'Model selected... Which operation would you like to perform?',
  7. 'choices': [
  8. 'get types',
  9. 'select context',
  10. Separator(),
  11. 'close model'
  12. ],
  13. 'filter': lambda x: x.replace(' ', '_')
  14. }
  15. ]
  16. MODEL_MGMT = [
  17. {
  18. 'type': 'list',
  19. 'name': 'op',
  20. 'message': 'Which model management operation would you like to perform?',
  21. 'choices': [
  22. 'get models',
  23. 'select model',
  24. 'instantiate model',
  25. 'check conformance',
  26. Separator(),
  27. 'load state',
  28. 'dump state',
  29. Separator(),
  30. 'exit'
  31. ],
  32. 'filter': lambda x: x.replace(' ', '_')
  33. }
  34. ]