Skip to content

Commit

Permalink
Move interface close to class which is using it
Browse files Browse the repository at this point in the history
  • Loading branch information
Yevhen Zavhorodnii committed Jun 9, 2024
1 parent 1aa3613 commit 7034682
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
9 changes: 9 additions & 0 deletions pkg/types/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ type Model struct {
GeneratedRisksBySyntheticId map[string]*Risk `json:"generated_risks_by_synthetic_id,omitempty" yaml:"generated_risks_by_synthetic_id,omitempty"`
}

type ProgressReporter interface {
Info(a ...any)
Warn(a ...any)
Error(a ...any)
Infof(format string, a ...any)
Warnf(format string, a ...any)
Errorf(format string, a ...any)
}

func (model *Model) AddToListOfSupportedTags(tags []string) {
for _, tag := range tags {
model.AllSupportedTags[tag] = true
Expand Down
10 changes: 0 additions & 10 deletions pkg/types/progress-reporter.go

This file was deleted.

0 comments on commit 7034682

Please sign in to comment.