Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-timothy-albert committed Apr 24, 2024
1 parent 12d2baa commit 581b569
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions internal/cli/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ func Run(sourcesOnly bool, installationURLs map[string]string, repoURL string, r
args = append(args, "-r", repoURL)
}

//tags := processRegistryTags()
args = append(args, "--registry-tags ryan")
tags := processRegistryTags()
if len(tags) > 0 {
tagString := strings.Join(tags, ",")
fmt.Println("registry tags: ", tagString)
args = append(args, "--registry-tags", tagString)
}

if environment.ForceGeneration() {
fmt.Println("force input enabled - setting SPEAKEASY_FORCE_GENERATION=true")
Expand Down Expand Up @@ -114,7 +118,7 @@ func getChangesReportURL(out string) string {
func processRegistryTags() []string {
var tags []string
tagsInput := environment.RegistryTags()
if len(strings.Trim(tagsInput, " ")) == 0 {
if len(strings.Replace(tagsInput, " ", "", -1)) == 0 {
return tags
}

Expand All @@ -126,7 +130,7 @@ func processRegistryTags() []string {
}

for _, tag := range processedTags {
tag = strings.Trim(tag, " ")
tag = strings.Replace(tag, " ", "", -1)
if len(tag) > 0 {
tags = append(tags, tag)
}
Expand Down

0 comments on commit 581b569

Please sign in to comment.