18 lines
534 B
Go
18 lines
534 B
Go
|
|
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
|
||
|
|
}
|