mirror of
https://github.com/go-task/task.git
synced 2026-07-07 22:18:47 +00:00
rename func: ReplaceVariables -> CompiledTask
This commit is contained in:
@@ -226,9 +226,9 @@ func (e *Executor) handleDynamicVariableContent(v Var) (string, error) {
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// ReplaceVariables returns a copy of a task, but replacing
|
||||
// CompiledTask returns a copy of a task, but replacing
|
||||
// variables in almost all properties using the Go template package
|
||||
func (t *Task) ReplaceVariables(vars Vars) (*Task, error) {
|
||||
func (t *Task) CompiledTask(vars Vars) (*Task, error) {
|
||||
r := varReplacer{vars: vars}
|
||||
|
||||
new := Task{
|
||||
|
||||
Reference in New Issue
Block a user