27 lines
335 B
Go
27 lines
335 B
Go
/*
|
|
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() {
|
|
}
|