splicemachine / splicectl

GNU Affero General Public License v3.0
2 stars 2 forks source link

K8s: splicectl - Add a cmd.ChangeLog variable, and set it with the contents of the most recent changelog text #11

Closed RileyMcCuen closed 3 years ago

RileyMcCuen commented 3 years ago

Description

Added a changelog command that output the changelog based on the client semantic version of the splicectl client. This works by making an api call to Github requesting the changelog based on the version and thus requires an internet connection to work.

Motivation and Context

This will help when a new version is released, so that anybody who is familiar with the splicectl tool will be able to view the changes to the tool and use some of the new available commands or learn the ways as well as update their current usage based on any breaking changes to the existing commands.

How Has This Been Tested?

I tested the url in the api call returned what was expected and it did, but only when supplied with a specific format for the semantic version which the splicectl versions do not always match. Therefore, I made and tested a regex to parse out the important part of the version. I then built the app with different versions and all worked as expected.

Checklist

If the pull request includes user-facing changes, extra documentation is required:

Changelog Inclusions

Additions

Checklist