refactor: put StripTagMeta into formatter package

Avoid circular import.
This commit is contained in:
2022-01-19 10:40:14 +01:00
parent 7a66a90ecb
commit f9a2c1d58f
7 changed files with 31 additions and 28 deletions

View File

@ -12,6 +12,7 @@ import (
"coopcloud.tech/abra/pkg/autocomplete"
"coopcloud.tech/abra/pkg/client"
"coopcloud.tech/abra/pkg/config"
"coopcloud.tech/abra/pkg/formatter"
recipePkg "coopcloud.tech/abra/pkg/recipe"
"coopcloud.tech/tagcmp"
"github.com/AlecAivazis/survey/v2"
@ -119,7 +120,7 @@ You may invoke this command in "wizard" mode and be prompted for input:
}
logrus.Debugf("retrieved %s from remote registry for %s", regVersions, image)
image = recipePkg.StripTagMeta(image)
image = formatter.StripTagMeta(image)
switch img.(type) {
case reference.NamedTagged: