Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Fully Genericize Version Command #352

Open
5 tasks
michaeltlombardi opened this issue Feb 15, 2022 · 0 comments
Open
5 tasks

Fully Genericize Version Command #352

michaeltlombardi opened this issue Feb 15, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@michaeltlombardi
Copy link
Contributor

Once the version command is fully generic, it can be reused in other projects/apps, as build has been in PRM.

Acceptance Criteria

  • Add a VersionCommand struct to the cmd/version/version.go which has the version, buildDate, commit, appName, and appSourceUrl properties.
  • Add a VersionCommandI interface which must implement the CreateVersionCommand() and Format() functions
  • Modify VersionCommand() to use the VersionCommand struct instead of parameters
  • Modify the Format() function to use the VersionCommand struct instead of parameters and to not hard-code the application name
  • Modify the changelogURL() private function to use the VersionCommand struct instead of parameters and to not hard-code the GitHub path
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant