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

Fully Genericize Version Command #352

Description

@michaeltlombardi

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions