odigos-io / odigos

Distributed tracing without code changes. 🚀 Instantly monitor any application using OpenTelemetry and eBPF

Home Page:https://odigos.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `--short` flag to odigos version command

edeNFed opened this issue · comments

Currently running odigos version will print the full version of the CLI and the version installed on the current cluster.
I propose adding a new flag which can be used like: odigos version --short, this flag will return only the current version of the CLI without any additional data.
for example

> odigos install --short
v1.0.21

By implementing this feature we will be able to automatically get the current version in the Makefile without having to specify TAG env var.

I'd like to work on this

I'd like to work on this

Thanks @WallysFerreira , please reach out if you need any help with this

I think I'm almost set to go, but there's an error on installation that does not let me test the flag.

Screenshot of error on console

When you execute go run . install from the code, you need to specify the version you are installing like this:
go run . install --version v1.0.27.

For official releases, the version is embedded in the CI, but for development you need to set it directly

added in #939