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.
ansible-homelab/cmd/root.go

27 lines
384 B
Go

package cmd
import (
"fmt"
"os"
"github.com/chatton/homelab/cmd/portainer"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(portainer.NumbersCmd)
}
var rootCmd = &cobra.Command{
Use: "randx",
Version: "1.0.1",
Short: "Returns random numbers or letters.",
}
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}