feat: implement CI/CD pipeline and release automation

This commit is contained in:
Yar Kravtsov
2025-05-24 09:20:43 +03:00
parent 905d88e0cf
commit 398d011270
10 changed files with 593 additions and 4 deletions

View File

@@ -7,12 +7,24 @@ import (
"github.com/spf13/cobra"
)
var (
version = "dev"
buildTime = "unknown"
)
var rootCmd = &cobra.Command{
Use: "lnk",
Short: "Dotfiles, linked. No fluff.",
Long: "Lnk is a minimalist CLI tool for managing dotfiles using symlinks and Git.",
}
// SetVersion sets the version information for the CLI
func SetVersion(v, bt string) {
version = v
buildTime = bt
rootCmd.Version = fmt.Sprintf("%s (built %s)", version, buildTime)
}
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)