Mistral CLI enhancements
I would suggest the following enhancements for Mistral CLI:
1. Instead of printing messages like "Starting new HTTP connection (1): localhost" after operations print if it was performed successfully or not.
Example:
bash-3.2$ mistral workbook-
Starting new HTTP connection (1): localhost
2. Make it possible to create a workbook and upload its definition at the same time. Would it cool to have something like:
bash-3.2$ mistral workbook-create my_wb 'My deployment workflow' 'tag1, tag2' < cat my_demo.yaml
3. In case if some pre-conditions are wrong print a short message with suggestions on how to fix the problem (+ may be print standard help).
Example:
bash-3.2$ mistral
Mistral supports only v3 keystone API.
Here we should see a message that points to how we can fix the problem.
4. When printing 'mistral --help' it would be convenient to see a list of parameters for every command in brackets like:
Commands:
complete print bash completion command
execution-create Create new execution (workbook, task, context)
...
Blueprint information
- Status:
- Complete
- Approver:
- Renat Akhmerov
- Priority:
- Medium
- Drafter:
- Renat Akhmerov
- Direction:
- Needs approval
- Assignee:
- Nikolay Makhotkin
- Definition:
- Approved
- Series goal:
- Accepted for juno
- Implementation:
- Implemented
- Milestone target:
- 0.1
- Started by
- Nikolay Makhotkin
- Completed by
- Nikolay Makhotkin
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Add upload workbook definition
Gerrit topic: https:/
Gerrit topic: https:/
Addressed by: https:/
Print status code of requests
Gerrit topic: https:/
Points 1,2,3 are implemented. Point 4 will be not implemented since it requires to change the underlaying library (cliff)