An Executor is used for processing Taskfile(s) and executing the task(s) within them.
| 25 | // An Executor is used for processing Taskfile(s) and executing the task(s) |
| 26 | // within them. |
| 27 | Executor struct { |
| 28 | // Flags |
| 29 | Dir string |
| 30 | Entrypoint string |
| 31 | TempDir TempDir |
| 32 | TempDirPath string |
| 33 | Force bool |
| 34 | ForceAll bool |
| 35 | Insecure bool |
| 36 | Download bool |
| 37 | Offline bool |
| 38 | TrustedHosts []string |
| 39 | Timeout time.Duration |
| 40 | CacheExpiryDuration time.Duration |
| 41 | RemoteCacheDir string |
| 42 | CACert string |
| 43 | Cert string |
| 44 | CertKey string |
| 45 | Watch bool |
| 46 | Verbose bool |
| 47 | Silent bool |
| 48 | DisableFuzzy bool |
| 49 | AssumeYes bool |
| 50 | AssumeTerm bool // Used for testing |
| 51 | Interactive bool |
| 52 | Dry bool |
| 53 | Summary bool |
| 54 | Parallel bool |
| 55 | Color bool |
| 56 | Concurrency int |
| 57 | Interval time.Duration |
| 58 | Failfast bool |
| 59 | |
| 60 | // I/O |
| 61 | Stdin io.Reader |
| 62 | Stdout io.Writer |
| 63 | Stderr io.Writer |
| 64 | |
| 65 | // Internal |
| 66 | Taskfile *ast.Taskfile |
| 67 | Logger *logger.Logger |
| 68 | Compiler *Compiler |
| 69 | Output output.Output |
| 70 | OutputStyle ast.Output |
| 71 | TaskSorter sort.Sorter |
| 72 | UserWorkingDir string |
| 73 | EnableVersionCheck bool |
| 74 | |
| 75 | fuzzyModel *fuzzy.Model |
| 76 | fuzzyModelOnce sync.Once |
| 77 | |
| 78 | promptedVars *ast.Vars // vars collected via interactive prompts |
| 79 | concurrencySemaphore chan struct{} |
| 80 | taskCallCount map[string]*int32 |
| 81 | mkdirMutexMap map[string]*sync.Mutex |
| 82 | executionHashes map[string]context.Context |
| 83 | executionHashesMutex sync.Mutex |
| 84 | watchedDirs *xsync.Map[string, bool] |
nothing calls this directly
no outgoing calls
no test coverage detected