diff --git a/buildversion/version.go b/buildversion/version.go index 2b1b3687..0f404f3a 100644 --- a/buildversion/version.go +++ b/buildversion/version.go @@ -26,7 +26,8 @@ import ( const DefaultVersion = "0.0.0-dev" var ( - // these are overwritten/populated via build CLI + // these vars are overwritten/populated via build CLI + BuildVersion = DefaultVersion BuildTime = "" BuildCommit = "" diff --git a/settings/appsettings.go b/settings/appsettings.go index d5596087..1075bfa2 100644 --- a/settings/appsettings.go +++ b/settings/appsettings.go @@ -72,7 +72,7 @@ const ( NancyConfigFileName = ".nancy-config" ) -// settingsPath returns the path of the CLI settings directory +// AppSettingsPath returns the path of the CLI settings directory func AppSettingsPath() string { // TODO: Make this configurable home, _ := os.UserHomeDir() diff --git a/update/update.go b/update/update.go index 9c2cdd4e..778f1cc6 100644 --- a/update/update.go +++ b/update/update.go @@ -30,7 +30,6 @@ import ( ) const ( - //DefaultGithubEnterpriseAPI = "https://api.github.com/" NancyAppName = "nancy" NancySlug = "sonatype-nexus-community/" + NancyAppName ) @@ -129,20 +128,20 @@ func findBrew() (brew string, err error) { // HomebrewOutdated wraps the JSON output from running `brew outdated --json=v2` // We're specifically looking for this kind of structured data from the command: // -// { -// "formulae": [ -// { -// "name": "nancy", -// "installed_versions": [ -// "0.1.1248" -// ], -// "current_version": "0.1.3923", -// "pinned": false, -// "pinned_version": null -// } -// ], -// "casks": [] -// } +// { +// "formulae": [ +// { +// "name": "nancy", +// "installed_versions": [ +// "0.1.1248" +// ], +// "current_version": "0.1.3923", +// "pinned": false, +// "pinned_version": null +// } +// ], +// "casks": [] +// } type HomebrewOutdated struct { Formulae []struct { Name string `json:"name"`