grim/convey

Parents abbe86265b2f
Children 6ad94c3a0bfa
required_version should be required-version to match other attributes.
--- a/REFERENCE.md Sun Feb 18 22:05:20 2018 -0600
+++ b/REFERENCE.md Sun Feb 18 22:06:48 2018 -0600
@@ -13,9 +13,9 @@
The complete reference for convey.yml can be found below.
-## required_version
+## required-version
-The `required_version` field lets you specify a required version of convey
+The `required-version` field lets you specify a required version of convey
to run your `convey.yml`. Ranges are supported according to the semantics
defined [here](https://github.com/blang/semver#ranges). If a
`required_version` is not specified, convey will always attempt to run the
--- a/convey.yml Sun Feb 18 22:05:20 2018 -0600
+++ b/convey.yml Sun Feb 18 22:06:48 2018 -0600
@@ -1,5 +1,5 @@
---
-required_version: 0.14.0-dev
+required-version: 0.14.0-dev
environment:
- CONVEY_VERSION=0.14.0-dev
- GO_PACKAGE=bitbucket.org/rw_grim/convey
--- a/loaders/convey/convey.go Sun Feb 18 22:05:20 2018 -0600
+++ b/loaders/convey/convey.go Sun Feb 18 22:06:48 2018 -0600
@@ -44,7 +44,7 @@
}
type config struct {
- RequiredVersion string `yaml:"required_version"`
+ RequiredVersion string `yaml:"required-version"`
Extends string `yaml:"extends"`
Tasks map[string]yaml.MapSlice `yaml:"tasks"`
Plans map[string]plans.Plan `yaml:"plans"`