Share pipeline invocation preparation

This commit is contained in:
2026-11-28 04:05:54 +00:00
parent 8c09077def
commit 9e82b5f6b8
4 changed files with 153 additions and 78 deletions

View File

@@ -60,6 +60,10 @@ func runFlags() []commandkit.Flag[pipelineRunInput] {
return append(flags, executionOverrideFlags(func(input *pipelineRunInput) *executionOverrides { return &input.Overrides })...)
}
func pipelineRunArguments() []commandkit.Argument[pipelineRunInput] {
return []commandkit.Argument[pipelineRunInput]{commandkit.ValueArgument(commandkit.ArgumentMeta{Name: "pipeline-id", Usage: "Configured pipeline identifier."}, true, parseRequiredRunValue, func(input *pipelineRunInput, value commandkit.Supplied[string]) { input.PipelineID = value.Value })}
}
func parseRequiredRunValue(value string) (string, error) {
if strings.TrimSpace(value) == "" {
return "", fmt.Errorf("value must not be empty")