Install native run and artifact regeneration commands

This commit is contained in:
2026-11-20 05:10:04 +00:00
parent ed29bdc473
commit 0238f82847
8 changed files with 271 additions and 121 deletions

View File

@@ -23,13 +23,17 @@ func (f *artifactSelectionFlag) Set(value string) error {
}
func (f *artifactSelectionFlag) Normalize() ([]string, error) {
if len(f.values) == 0 {
return normalizeArtifactNames(f.values)
}
func normalizeArtifactNames(values []string) ([]string, error) {
if len(values) == 0 {
return nil, nil
}
seen := map[string]struct{}{}
out := make([]string, 0, len(f.values))
for _, raw := range f.values {
out := make([]string, 0, len(values))
for _, raw := range values {
for _, part := range strings.Split(raw, ",") {
name := strings.TrimSpace(part)
if name == "" {