Example #1
0
func runMain(versionString string) error {
	if _, err := version.Parse(versionString); err != nil {
		return err
	}

	return pkg.Install(versionString, &pkg.InstallOptions{flagOwner, flagRepo})
}
Example #2
0
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,
	})
}