cmd/root.go (17 lines of code) (raw):
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
package cmd
import (
"os"
"github.com/Azure/kubectl-aks/cmd/utils"
"github.com/spf13/cobra"
)
// Common flags for all subcommands
var commonFlags utils.CommonFlags
var rootCmd = &cobra.Command{
Use: "kubectl-aks",
Short: "Azure Kubernetes Service (AKS) kubectl plugin",
}
func Execute() {
err := rootCmd.Execute()
if err != nil {
os.Exit(1)
}
}