feat: add tags feature

This commit is contained in:
Technofab 2022-12-04 20:25:41 +01:00
parent f394814c2e
commit 538ff9c6f6
No known key found for this signature in database
GPG key ID: A0AA746B951C8830
6 changed files with 28 additions and 20 deletions

View file

@ -29,7 +29,7 @@ import (
)
// StepTidyConfig is used to tidy configs by proto file targets
func StepTidyConfig(ctx context.Context, targets []string) error {
func StepTidyConfig(ctx context.Context, targets []string, tags []string) error {
log := logger.NewDefault("tidy")
log.SetLogLevel(logger.LevelInfo)
if consts.IsDebugMode(ctx) {
@ -47,7 +47,7 @@ func StepTidyConfig(ctx context.Context, targets []string) error {
configPaths := map[string]struct{}{}
for _, target := range targets {
cfg, err := configManager.GetConfig(ctx, target)
cfg, err := configManager.GetConfig(ctx, target, tags)
if err != nil {
return err
}