#4 fixed
This commit is contained in:
parent
74ab1a1695
commit
84c4383fdf
|
@ -59,16 +59,6 @@ func (h *Config) Fast(params *cli.Context) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func routines(p *Project, channel chan bool, wr *sync.WaitGroup) {
|
||||
channel = make(chan bool)
|
||||
err := p.fmt()
|
||||
if err == nil {
|
||||
wr.Add(1)
|
||||
go p.build()
|
||||
go p.install(channel, wr)
|
||||
}
|
||||
}
|
||||
|
||||
// Watching method is the main core. It manages the livereload and the watching
|
||||
func (p *Project) watching() {
|
||||
|
||||
|
@ -214,6 +204,19 @@ func (p *Project) ignore(str string) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
// Routines launches the following methods: run, build, fmt, install
|
||||
func routines(p *Project, channel chan bool, wr *sync.WaitGroup) {
|
||||
channel = make(chan bool)
|
||||
err := p.fmt()
|
||||
if err == nil {
|
||||
wr.Add(1)
|
||||
go p.build()
|
||||
go p.install(channel, wr)
|
||||
} else {
|
||||
fmt.Println(Red(err))
|
||||
}
|
||||
}
|
||||
|
||||
// check if a string is inArray
|
||||
func inArray(str string, list []string) bool {
|
||||
for _, v := range list {
|
||||
|
|
Loading…
Reference in New Issue