package main import ( "fmt" "github.com/spf13/cobra" ) var rootCmd = &cobra.Command{ Use: "fckeuspy", Short: "Hybrid RSA+AES šifrovací nástroj (GUI / HTTP)", Long: "Fckeuspy: nástroj pro šifrování a dešifrování pomocí hybridního RSA-OAEP + AES-GCM, s Fyne GUI a HTTP serverem.", } var guiCmd = &cobra.Command{ Use: "gui", Short: "Spustí Fyne GUI", Run: func(cmd *cobra.Command, args []string) { runFyne() }, } var webCmd = &cobra.Command{ Use: "web", Short: "Spustí HTTP server", Run: func(cmd *cobra.Command, args []string) { fmt.Println("Spouštím HTTP server na :8080 ...") RunWebApp() }, } func init() { rootCmd.AddCommand(guiCmd) rootCmd.AddCommand(webCmd) }