1
0
mirror of https://github.com/daeuniverse/dae.git synced 2025-02-19 19:18:50 +07:00
dae/cmd/cmd.go
2023-03-14 00:34:38 +08:00

24 lines
486 B
Go

package cmd
import (
"github.com/spf13/cobra"
)
var (
Version = "unknown"
rootCmd = &cobra.Command{
Use: "dae [flags] [command [argument ...]]",
Short: "dae is a high-performance transparent proxy solution.",
Long: `dae is a high-performance transparent proxy solution.`,
Version: Version,
CompletionOptions: cobra.CompletionOptions{
DisableDefaultCmd: true,
},
}
)
// Execute executes the root command.
func Execute() error {
return rootCmd.Execute()
}