mirror of
https://github.com/TECHNOFAB11/powerproto.git
synced 2025-12-12 08:00:04 +01:00
feat: add tags feature
This commit is contained in:
parent
f394814c2e
commit
538ff9c6f6
6 changed files with 28 additions and 20 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue