feature(cli): version display improvements #2505
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a way for users to see what is the CLI and the server versions they are trying to use, this way if something isn't working correctly they can validate that before starting working.
It also shows the versions on every cmd error.
Changes
Fixes
Checklist
Correct response
![Screenshot 2023-05-09 at 17 39 25](https://user-images.githubusercontent.com/11051031/237042699-8cfaeed1-ea3a-46b2-9ebb-a5cb95eb7e3c.png)
Server not configured
![Screenshot 2023-05-09 at 17 39 40](https://user-images.githubusercontent.com/11051031/237042705-feb64b15-3373-4506-bb25-7e8ecb0fa224.png)
Server wrong response
![Screenshot 2023-05-09 at 17 39 53](https://user-images.githubusercontent.com/11051031/237042711-34216a7a-5288-4bde-9450-94757a4fd371.png)
Failed command
![Screenshot 2023-05-09 at 17 40 31](https://user-images.githubusercontent.com/11051031/237042720-575a7b74-8158-4158-9656-d8741574b9b0.png)