prompt_questions.py 898 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. from InquirerPy.separator 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. 'to graphviz',
  30. Separator(),
  31. 'exit'
  32. ],
  33. 'filter': lambda x: x.replace(' ', '_')
  34. }
  35. ]