main.go
1 // Package main is the entry point for the KeepSync CLI 2 package main 3 4 import ( 5 "fmt" 6 "os" 7 8 "keepSync/cmd/keepsync/cmd" 9 10 // Import command packages to register their commands 11 _ "keepSync/cmd/keepsync/cmd/advanced" 12 _ "keepSync/cmd/keepsync/cmd/provider" 13 _ "keepSync/cmd/keepsync/cmd/security" 14 _ "keepSync/cmd/keepsync/cmd/version" 15 ) 16 17 // Version information 18 var ( 19 Version = "1.0.0" 20 BuildDate = "unknown" 21 GitCommit = "unknown" 22 ) 23 24 func main() { 25 // Set version information 26 cmd.SetVersion(Version, BuildDate, GitCommit) 27 28 // Execute the root command 29 if err := cmd.Execute(); err != nil { 30 fmt.Fprintln(os.Stderr, err) 31 os.Exit(1) 32 } 33 }