Files
nebula-sync/cmd/root.go
T
Fredrik Berntsson cf3ec1706c Use linter formatting
2025-04-20 22:14:04 +02:00

23 lines
377 B
Go

package cmd
import (
"github.com/spf13/cobra"
"github.com/lovelaze/nebula-sync/internal/log"
"github.com/lovelaze/nebula-sync/version"
)
var rootCmd = &cobra.Command{
Use: "nebula-sync",
Version: version.Version,
}
func Execute() error {
return rootCmd.Execute()
}
func init() {
cobra.OnInitialize(log.Init)
rootCmd.CompletionOptions.HiddenDefaultCmd = true
}