mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-03 13:31:00 +07:00
29 lines
566 B
Go
29 lines
566 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/daeuniverse/dae/config"
|
|
"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,
|
|
},
|
|
}
|
|
)
|
|
|
|
func init() {
|
|
config.Version = Version
|
|
}
|
|
|
|
// Execute executes the root command.
|
|
func Execute() error {
|
|
return rootCmd.Execute()
|
|
}
|