diff --git a/cmd/cachewd/main.go b/cmd/cachewd/main.go index 4706347..6b5c10a 100644 --- a/cmd/cachewd/main.go +++ b/cmd/cachewd/main.go @@ -46,7 +46,7 @@ func main() { kctx.FatalIfErrorf(err) if fileInfo, err := os.Stdout.Stat(); err == nil && (fileInfo.Mode()&os.ModeCharDevice) != 0 { - err = quick.Highlight(os.Stdout, string(text), "terraform", "terminal256", "monokai") + err = quick.Highlight(os.Stdout, string(text), "terraform", "terminal256", "solarized") kctx.FatalIfErrorf(err) } else { fmt.Printf("%s\n", text) diff --git a/internal/config/config.go b/internal/config/config.go index ed540c2..444301b 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -87,7 +87,7 @@ func Load(ctx context.Context, r io.Reader, scheduler jobscheduler.Scheduler, mu for _, block := range strategyCandidates { logger := logger.With("strategy", block.Name) mlog := &loggingMux{logger: logger, mux: mux} - _, err := strategy.Create(ctx, scheduler.WithQueuePrefix(block.Name), block.Name, block, cache, mlog) + _, err := strategy.Create(ctx, block.Name, block, scheduler.WithQueuePrefix(block.Name), cache, mlog) if err != nil { return errors.Errorf("%s: %w", block.Pos, err) } diff --git a/internal/strategy/api.go b/internal/strategy/api.go index 2c8c899..f00308f 100644 --- a/internal/strategy/api.go +++ b/internal/strategy/api.go @@ -64,9 +64,9 @@ func Schema() *hcl.AST { // Will return "ErrNotFound" if the strategy is not found. func Create( ctx context.Context, - scheduler jobscheduler.Scheduler, name string, config *hcl.Block, + scheduler jobscheduler.Scheduler, cache cache.Cache, mux Mux, ) (Strategy, error) {