arttor/helmify

View on GitHub
cmd/helmify/version.go

Summary

Maintainability
A
0 mins
Test Coverage
package main

import (
    "fmt"
)

// these information will be collected when build, by `-ldflags "-X main.version=0.1"`.
var (
    version = "development"
    date    = "not set"
    commit  = "not set"
)

func printVersion() {
    fmt.Printf("Version:    %s\n", version)
    fmt.Printf("Build Time: %s\n", date)
    fmt.Printf("Git Commit: %s\n", commit)
}