mirror of
https://github.com/lovelaze/nebula-sync.git
synced 2025-11-05 18:29:19 +01:00
22 lines
363 B
Go
22 lines
363 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/lovelaze/nebula-sync/internal/log"
|
|
"github.com/lovelaze/nebula-sync/version"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var rootCmd = &cobra.Command{
|
|
Use: "nebula-sync",
|
|
Version: version.Version,
|
|
}
|
|
|
|
func Execute() {
|
|
rootCmd.Execute()
|
|
}
|
|
|
|
func init() {
|
|
cobra.OnInitialize(log.Init)
|
|
rootCmd.CompletionOptions.HiddenDefaultCmd = true
|
|
}
|