diff --git a/cmd/root.go b/cmd/root.go index d96dd0e..69363cc 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -9,7 +9,6 @@ import ( var rootCmd = &cobra.Command{ Use: "yr", Short: "yr is CLI tool for weather forecasts", - Run: root, } func Execute() { @@ -36,12 +35,3 @@ func init() { rootCmd.PersistentFlags().Float64VarP(&lon, "lon", "x", 0, "Longitude coordinate") rootCmd.PersistentFlags().Float64VarP(&lat, "lat", "y", 0, "Latitude coordinate") } - -func root(cmd *cobra.Command, args []string) { - if isWeb { - openBrowser("https://www.yr.no/en", nil) - } - - err := cmd.Help() - cobra.CheckErr(err) -}