diff --git a/realize/cli.go b/realize/cli.go index 6e20511..cc899d2 100644 --- a/realize/cli.go +++ b/realize/cli.go @@ -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:"-"` diff --git a/realize/projects_test.go b/realize/projects_test.go index ca50386..d1e5b6d 100644 --- a/realize/projects_test.go +++ b/realize/projects_test.go @@ -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 { diff --git a/realize/schema.go b/realize/schema.go index 38974f0..37a1c71 100644 --- a/realize/schema.go +++ b/realize/schema.go @@ -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"}, }, }