Skip to content

Commit

Permalink
introduce matchers attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeljesus committed Mar 7, 2018
1 parent 5a5c398 commit f1e339b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/steal.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func RunSteal(opts *StealOptions) (err error) {
done := make(chan struct{})
defer close(done)
start := time.Now()
failOnError(target.Dump(done, globalConfig.Tables, opts.concurrency), "Error while dumping")
failOnError(target.Dump(done, globalConfig, opts.concurrency), "Error while dumping")

<-done
log.WithField("total_time", time.Since(start)).Info("Done!")
Expand Down
7 changes: 6 additions & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ import "errors"
type (
// Spec represents the global app configuration
Spec struct {
Tables Tables
Matchers
Tables
}

// Matchers are variables to replace placeolders in filter
Matchers map[string]string

// Tables are an array of table
Tables []*Table

Expand Down

0 comments on commit f1e339b

Please sign in to comment.