uploader/cmd/root.go

28 lines
501 B
Go
Raw Permalink Normal View History

2024-05-03 08:23:58 +02:00
/*
Copyright © 2024 raul
*/
package cmd
import (
"github.com/spf13/cobra"
"os"
)
var rootCmd = &cobra.Command{
Use: "uploader",
Short: "Small HTTP server written in Go that lets users easily upload files to your computer.",
Long: `Small HTTP server written in Go that lets users easily upload files to your computer.`,
}
func Execute() {
err := rootCmd.Execute()
if err != nil {
os.Exit(1)
}
}
func init() {
rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
}