using Cobra for cli stuff

This commit is contained in:
2026-05-09 09:59:42 -06:00
parent 3b5e133773
commit 9b23688ee4
3 changed files with 48 additions and 1 deletions
+31
View File
@@ -0,0 +1,31 @@
package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "drogobox",
Short: "DroGoBox is just a dumb project",
Long: `DroGoBox is just a dumb project
an alternative to Nextcloud written with Go
so that I can learn Go. Don't trust it for production.
Maybe one day, but that day is not today.`,
Run: func(cmd *cobra.Command, args []string) {
// Do stuff here
},
}
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
func init() {
//
}