func runMain(versionString string) error { if _, err := version.Parse(versionString); err != nil { return err } return pkg.Install(versionString, &pkg.InstallOptions{flagOwner, flagRepo}) }
func runMain(versionString string) error { if _, err := version.Parse(versionString); err != nil { return err } return pkg.Install(versionString, &pkg.InstallOptions{ GitHubOwner: flagOwner, GitHubRepo: flagRepo, TargetDirectory: flagDst, }) }