You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
448 B
Go

package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
func init() {
runCmd.Flags().StringP("htpasswd", "p", "/opt/sites/$SITE/etc/htpasswd", "htpasswd file")
rootCmd.AddCommand(runCmd)
}
var runCmd = &cobra.Command{
Use: "run [site]",
Short: "Run the Proxy",
Long: `Run the Check_MK LQL API Proxy`,
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Check_MK LQL API Proxy v0.1 -- HEAD")
},
}