mirror of
https://github.com/CyberL1/holesail-proxy.git
synced 2025-02-23 10:39:20 -05:00
24 lines
336 B
Go
24 lines
336 B
Go
|
package cmd
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"os"
|
||
|
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
var rootCmd = &cobra.Command{
|
||
|
Use: "holesail-proxy",
|
||
|
Short: "A simple proxy for holesail connectors",
|
||
|
Run: func(cmd *cobra.Command, args []string) {
|
||
|
cmd.Help()
|
||
|
},
|
||
|
}
|
||
|
|
||
|
func Execute() {
|
||
|
if err := rootCmd.Execute(); err != nil {
|
||
|
fmt.Println(err)
|
||
|
os.Exit(1)
|
||
|
}
|
||
|
}
|