API changes
This commit is contained in:
parent
3883d1dedc
commit
be7d133c12
7
core.go
7
core.go
@ -91,10 +91,6 @@ func (gs *goldsmith) AbsDstPath(path string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (gs *goldsmith) Apply(p Processor) Applier {
|
func (gs *goldsmith) Apply(p Processor) Applier {
|
||||||
return gs.ApplyTo(p, "*")
|
|
||||||
}
|
|
||||||
|
|
||||||
func (gs *goldsmith) ApplyTo(p Processor, pattern string) Applier {
|
|
||||||
s := gs.stage()
|
s := gs.stage()
|
||||||
|
|
||||||
gs.wg.Add(1)
|
gs.wg.Add(1)
|
||||||
@ -106,7 +102,6 @@ func (gs *goldsmith) ApplyTo(p Processor, pattern string) Applier {
|
|||||||
return gs
|
return gs
|
||||||
}
|
}
|
||||||
|
|
||||||
func (gs *goldsmith) Wait() Applier {
|
func (gs *goldsmith) Complete() {
|
||||||
gs.wg.Wait()
|
gs.wg.Wait()
|
||||||
return gs
|
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,5 @@ type Processor interface {
|
|||||||
|
|
||||||
type Applier interface {
|
type Applier interface {
|
||||||
Apply(p Processor) Applier
|
Apply(p Processor) Applier
|
||||||
ApplyTo(p Processor, pattern string) Applier
|
Complete()
|
||||||
Wait() Applier
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user