feat: add release notes to version file

This commit is contained in:
James Houlahan
2020-12-15 16:28:15 +01:00
parent dfbf25a9f4
commit 4514d72d70
8 changed files with 74 additions and 64 deletions

View File

@ -88,9 +88,13 @@ func createApp() *cli.App { // nolint[funlen]
Usage: "An installer that can be used to manually install the app (can be specified multiple times)",
},
&cli.StringFlag{
Name: "landing",
Name: "landing-page",
Usage: "The landing page",
},
&cli.StringFlag{
Name: "release-notes-page",
Usage: "The release notes page",
},
&cli.Float64Flag{
Name: "rollout",
Usage: "What proportion of users should receive this update",
@ -129,12 +133,16 @@ func update(c *cli.Context) error {
version.Installers = c.StringSlice("installer")
}
if c.IsSet("landing") {
version.Landing = c.String("landing")
if c.IsSet("landing-page") {
version.LandingPage = c.String("landing-page")
}
if c.IsSet("release-notes-page") {
version.ReleaseNotesPage = c.String("release-notes-page")
}
if c.IsSet("rollout") {
version.Rollout = c.Float64("rollout")
version.RolloutProportion = c.Float64("rollout")
}
if c.IsSet("commit") {