MCPcopy Create free account
hub / github.com/danielmiessler/Fabric / resolveStepInputWithOverride

Function resolveStepInputWithOverride

internal/cli/workflow.go:262–267  ·  view source on GitHub ↗

resolveStepInputWithOverride returns the input for one step. A step.Input that is not blank after TrimSpace replaces carriedInput. Otherwise carriedInput stays.

(step WorkflowStep, carriedInput string)

Source from the content-addressed store, hash-verified

260// resolveStepInputWithOverride returns the input for one step. A step.Input that
261// is not blank after TrimSpace replaces carriedInput. Otherwise carriedInput stays.
262func resolveStepInputWithOverride(step WorkflowStep, carriedInput string) (chosenInput string, usedOverride bool) {
263 if override := strings.TrimSpace(step.Input); override != "" {
264 return override, true
265 }
266 return carriedInput, false
267}
268
269func mergeVars(base, override map[string]string) map[string]string {
270 if len(base) == 0 && len(override) == 0 {

Callers 2

runWorkflowFunction · 0.85

Calls

no outgoing calls

Tested by 1