struct names fixed

This commit is contained in:
asoseil 2018-02-09 17:51:11 +01:00
parent 13beb532f9
commit dff147f801
3 changed files with 8 additions and 4 deletions

View File

@ -34,7 +34,7 @@ type (
// Realize main struct
Realize struct {
Settings Settings `yaml:"settings" json:"settings"`
Server Server `yaml:"server" json:"server"`
Server Server `yaml:"server,omitempty" json:"server,omitempty"`
Schema `yaml:",inline" json:",inline"`
Sync chan string `yaml:"-" json:"-"`
Err Func `yaml:"-" json:"-"`

View File

@ -48,7 +48,7 @@ func TestProject_Before(t *testing.T) {
r = Realize{}
r.Projects = append(r.Projects, Project{
parent: &r,
Environment: map[string]string{
Env: map[string]string{
input: input,
},
})
@ -129,7 +129,9 @@ func TestProject_Validate(t *testing.T) {
parent: &r,
Watcher: Watch{
Exts: []string{},
IgnoredPaths: []string{"/test/ignore"},
Ignore: Ignore{
Paths:[]string{"/test/ignore"},
},
},
})
for i, v := range data {

View File

@ -68,7 +68,9 @@ func (s *Schema) New(c *cli.Context) Project {
Args: params(c),
Watcher: Watch{
Paths: []string{"/"},
IgnoredPaths: []string{".git", ".realize", "vendor"},
Ignore: Ignore{
Paths:[]string{".git", ".realize", "vendor"},
},
Exts: []string{"go"},
},
}