Skip to content

Commit

Permalink
Add golang information to the --version output
Browse files Browse the repository at this point in the history
so that we can grep for "boringcrypto" in the output as part of this:

kairos-io/packages#334

Signed-off-by: Dimitris Karakasilis <[email protected]>
  • Loading branch information
jimmykarily committed Jul 18, 2023
1 parent 9f56a55 commit 2839a1e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/cli/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package cli
import (
"fmt"
"os"
"runtime"
"strconv"

providerConfig "github.com/kairos-io/provider-kairos/v2/internal/provider/config"
Expand Down Expand Up @@ -95,6 +96,11 @@ The validate command expects a configuration file as its only argument. Local fi

func Start() error {
toolName := "kairos"

cli.VersionPrinter = func(cCtx *cli.Context) {
fmt.Printf("version: %s, compiled with: %s\n", VERSION, runtime.Version())
}

Check warning on line 102 in internal/cli/start.go

View check run for this annotation

Codecov / codecov/patch

internal/cli/start.go#L99-L102

Added lines #L99 - L102 were not covered by tests

app := &cli.App{
Name: toolName,
Version: VERSION,
Expand Down

0 comments on commit 2839a1e

Please sign in to comment.