feat: initial Lnk CLI implementation

This commit is contained in:
Yar Kravtsov
2025-05-24 06:17:52 +03:00
commit 9088bbda50
13 changed files with 941 additions and 0 deletions

21
cmd/root.go Normal file
View File

@@ -0,0 +1,21 @@
package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
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.",
}
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}