zutils/cmd/version.go

18 lines
534 B
Go
Raw Permalink Normal View History

package cmd
import (
"fmt"
"github.com/zemenawi/zutils/pkg/colors"
)
const Version = "0.1.0"
func VersionCommand(args []string) error {
fmt.Printf("%s%szutils%s - User-friendly terminal utilities\n\n", colors.Cyan, colors.Bold, colors.Reset)
fmt.Printf("%sVersion:%s %s%s%s\n", colors.Blue, colors.Reset, colors.Green, colors.Bold, Version)
fmt.Printf("%sBuilt with:%s Go\n", colors.Blue, colors.Reset)
fmt.Printf("%sHome:%s https://github.com/zemenawi/zutils\n", colors.Blue, colors.Reset)
fmt.Println()
return nil
}