package vset import ( "flag" "fmt" "os" ) var ( path string goLintPath string ) // The Start() function validates the input path and updates it to point to the .vscode directory. func Start() { flag.StringVar(&path, "p", "", "Provide a path to your repo, I.E. just vset ") flag.Parse() // If the -p flag was not passed, exit the program. if path == "" { fmt.Println("Please provide the path to your repo.") os.Exit(1) } path, err := Update(path) if err != nil { fmt.Println(err) os.Exit(1) } fmt.Println("Configuring settings.json...") if err := Configurator(path, goLintPath); err != nil { fmt.Println(err) os.Exit(1) } }