cli
cli copied to clipboard
List command displays Legacy CLI version instead of the correct one
Steps to reproduce:
- Run
platform --version - Run
platform list | head -n 1 - Both commands should output the same version
Technical details
The CLI version should be overwritten when the command list is fetched from the Legacy CLI. https://github.com/platformsh/cli/blob/ee641b8b2e40d61bcf385e37cb352be954e6722a/commands/list.go#L66-L69