reply-ip/cmd/root.go

27 lines
335 B
Go
Raw Normal View History

2024-05-09 09:31:14 +02:00
/*
Copyright © 2024 raul
*/
package cmd
import (
"github.com/spf13/cobra"
"os"
)
var rootCmd = &cobra.Command{
Use: "reply-ip",
Short: "HTTP server that returns the client IP",
Long: `HTTP server that returns the client IP`,
}
func Execute() {
err := rootCmd.Execute()
if err != nil {
os.Exit(1)
}
}
func init() {
}