struct names fixed
This commit is contained in:
parent
13beb532f9
commit
dff147f801
@ -34,7 +34,7 @@ type (
|
|||||||
// Realize main struct
|
// Realize main struct
|
||||||
Realize struct {
|
Realize struct {
|
||||||
Settings Settings `yaml:"settings" json:"settings"`
|
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"`
|
Schema `yaml:",inline" json:",inline"`
|
||||||
Sync chan string `yaml:"-" json:"-"`
|
Sync chan string `yaml:"-" json:"-"`
|
||||||
Err Func `yaml:"-" json:"-"`
|
Err Func `yaml:"-" json:"-"`
|
||||||
|
@ -48,7 +48,7 @@ func TestProject_Before(t *testing.T) {
|
|||||||
r = Realize{}
|
r = Realize{}
|
||||||
r.Projects = append(r.Projects, Project{
|
r.Projects = append(r.Projects, Project{
|
||||||
parent: &r,
|
parent: &r,
|
||||||
Environment: map[string]string{
|
Env: map[string]string{
|
||||||
input: input,
|
input: input,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@ -129,7 +129,9 @@ func TestProject_Validate(t *testing.T) {
|
|||||||
parent: &r,
|
parent: &r,
|
||||||
Watcher: Watch{
|
Watcher: Watch{
|
||||||
Exts: []string{},
|
Exts: []string{},
|
||||||
IgnoredPaths: []string{"/test/ignore"},
|
Ignore: Ignore{
|
||||||
|
Paths:[]string{"/test/ignore"},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
for i, v := range data {
|
for i, v := range data {
|
||||||
|
@ -68,7 +68,9 @@ func (s *Schema) New(c *cli.Context) Project {
|
|||||||
Args: params(c),
|
Args: params(c),
|
||||||
Watcher: Watch{
|
Watcher: Watch{
|
||||||
Paths: []string{"/"},
|
Paths: []string{"/"},
|
||||||
IgnoredPaths: []string{".git", ".realize", "vendor"},
|
Ignore: Ignore{
|
||||||
|
Paths:[]string{".git", ".realize", "vendor"},
|
||||||
|
},
|
||||||
Exts: []string{"go"},
|
Exts: []string{"go"},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user