grim/convey

Parents 201d62c05f7e
Children e1d57596eb48
Allow import/export tasks files item to be a string or a slice
--- a/tasks/export.go Mon Jul 29 02:49:01 2019 -0500
+++ b/tasks/export.go Fri Aug 02 00:10:42 2019 -0500
@@ -24,11 +24,12 @@
"bitbucket.org/rw_grim/convey/environment"
"bitbucket.org/rw_grim/convey/path"
"bitbucket.org/rw_grim/convey/runtime"
+ "bitbucket.org/rw_grim/convey/yaml"
)
type Export struct {
- Files []string `yaml:"files"`
- Path string `yaml:"path"`
+ Files yaml.StringOrSlice `yaml:"files"`
+ Path string `yaml:"path"`
}
// New creates a new Export task.
--- a/tasks/import.go Mon Jul 29 02:49:01 2019 -0500
+++ b/tasks/import.go Fri Aug 02 00:10:42 2019 -0500
@@ -25,11 +25,12 @@
"bitbucket.org/rw_grim/convey/environment"
"bitbucket.org/rw_grim/convey/path"
"bitbucket.org/rw_grim/convey/runtime"
+ "bitbucket.org/rw_grim/convey/yaml"
)
type Import struct {
- Files []string `yaml:"files"`
- Path string `yaml:"path"`
+ Files yaml.StringOrSlice `yaml:"files"`
+ Path string `yaml:"path"`
}
// New creates a new Import task.