Skip to content

Write a Version Command for OCM CLI v2 #529

@ikhandamirov

Description

@ikhandamirov

Description
As a user I want to be able to determine, which version of the CLI I am using.

It is to be discussed, if it is enough to just have the --version flag, or a separate ocm version command with different output formats is required.

Example command:

ocm version
{"Major":"0", "Minor":"26", "Patch":"0", "PreRelease":"dev", "Meta":"5d1fd7f8431b19d9f88e07a79e2e096e9f17fdd3", "GitVersion":"0.26.0-dev+5d1fd7f8431b19d9f88e07a79e2e096e9f17fdd3", "GitCommit":"5d1fd7f8431b19d9f88e07a79e2e096e9f17fdd3", "GitTreeState":"clean", "BuildDate":"2025-05-23T11:04:18+0000", "GoVersion":"go1.24.2", "Compiler":"gc", "Platform":"darwin/arm64"}

In Scope: Replication of this json format.

Done Criteria

  • Code has been reviewed by other team members
  • Analysis of existing tests (Unit and Integration)
  • Unit Tests created for new code or existing Unit Tests updated
  • Integration Test Suite updated (includes deletion of existing unnecessary Integration Test and/or creation of new ones if required)
  • Enduser Documentation updated (if applicable)
  • Internal technical Documentation created/updated (if applicable)
  • Successful demonstration in Review

Metadata

Metadata

Labels

area/ipceiImportant Project of Common European Interestkind/featurenew feature, enhancement, improvement, extension
No fields configured for Feature.

Projects

Status
🍺 Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions