28 lines
501 B
Go
28 lines
501 B
Go
/*
|
|
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")
|
|
}
|