INNER CODE UNIT · Go
resolverInputTemplate
ovh/utask · api/api_test.go:681
func resolverInputTemplate() tasktemplate.TaskTemplate {
return tasktemplate.TaskTemplate{
Name: "resolver-input-template",
Description: "does nothing",
TitleFormat: "this task does nothing at all",
Inputs: []input.Input{
{
Name: "id",
},
},
Variables: []values.Variable{
{
Name: "var1",
Value: "hello id {{.input.id }} for {{ .step.step1.output.foo }} and {{ .step.this.state | default \"BROKEN_TEMPLATING\" }}",
},
{
Name: "var2",
Expression: "var a = 3+2; a;",