Removing dead code.

main
Nick Dumas 2 years ago
parent 114d67874c
commit e3fc79a785

@ -5,9 +5,7 @@ package cmd
import (
"fmt"
"io"
"log"
"net/url"
"os"
"github.com/santhosh-tekuri/jsonschema/v5"
@ -16,19 +14,6 @@ import (
"gopkg.in/yaml.v3"
)
func LoadURL(s string) (io.ReadCloser, error) {
u, err := url.Parse(s)
if err != nil {
return nil, err
}
loader, ok := jsonschema.Loaders[u.Scheme]
if !ok {
return nil, jsonschema.LoaderNotFoundError(s)
}
return loader(s)
}
// rootCmd represents the base command when called without any subcommands
var validateCmd = &cobra.Command{
Use: "validate",

Loading…
Cancel
Save