- Add directory information with Unicode table borders - Add network information with professional formatting - Add version command - Add comprehensive documentation (README.md, DEVELOPMENT.md) - Improve table output with proper borders and alignment - Add project structure (cmd/, pkg/ directories)
17 lines
534 B
Go
17 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
|
|
}
|