MCPcopy Create free account

hub / github.com/go-task/task / functions

Functions992 in github.com/go-task/task

FunctionWithConcurrency
WithConcurrency sets the maximum number of tasks that the [Executor] can run in parallel.
executor.go:502
FunctionWithDebugFunc
WithDebugFunc sets the debug function to be used by the [Reader]. If set, this function will be called with debug messages. This can be useful if the
taskrc/reader.go:47
FunctionWithDir
WithDir sets the working directory of the [Executor]. By default, the directory is set to the user's current working directory.
executor.go:127
FunctionWithDisableFuzzy
WithDisableFuzzy tells the [Executor] to disable fuzzy matching for task names.
executor.go:393
FunctionWithDownload
WithDownload forces the [Executor] to download a fresh copy of the taskfile from the remote source.
executor.go:229
FunctionWithDry
WithDry tells the [Executor] to output the commands that would be run without actually running them.
executor.go:446
FunctionWithEntrypoint
WithEntrypoint sets the entrypoint (main Taskfile) of the [Executor]. By default, Task will search for one of the default Taskfiles in the given direc
executor.go:142
FunctionWithFailfast
WithFailfast tells the [Executor] whether or not to check the version of
executor.go:626
FunctionWithFixtureTemplateData
WithFixtureTemplateData adds data to the golden fixture file templates. Keys given here will override any existing values. This option will also enabl
task_test.go:277
FunctionWithForce
WithForce ensures that the [Executor] always runs a task, even when fingerprinting or prompts would normally stop it.
executor.go:187
FunctionWithForceAll
WithForceAll ensures that the [Executor] always runs all tasks (including subtasks), even when fingerprinting or prompts would normally stop them.
executor.go:201
FunctionWithIO
WithIO sets the [Executor]'s standard input, output, and error to the same [io.ReadWriter].
executor.go:598
FunctionWithInsecure
WithInsecure allows the [Executor] to make insecure connections when reading remote taskfiles. By default, insecure connections are rejected.
executor.go:215
FunctionWithInteractive
WithInteractive tells the [Executor] to prompt for missing required variables.
executor.go:432
FunctionWithInterval
WithInterval sets the interval at which the [Executor] will wait for duplicated events before running a task.
executor.go:516
FunctionWithListError
WithListError tells the test to expect an error when running the formatter. A fixture will be created with the output of any errors.
formatter_test.go:87
FunctionWithOffline
WithOffline stops the [Executor] from being able to make network connections. It will still be able to read local files and cached copies of remote fi
executor.go:243
FunctionWithOutputStyle
WithOutputStyle sets the output style of the [Executor]. By default, the output style is set to the style defined in the Taskfile.
executor.go:530
FunctionWithParallel
WithParallel tells the [Executor] to run tasks given in the same call in parallel.
executor.go:474
FunctionWithRemoteCacheDir
WithRemoteCacheDir sets the directory where remote taskfiles are cached.
executor.go:298
FunctionWithSilent
WithSilent tells the [Executor] to suppress all output except for the output of the tasks that are run.
executor.go:380
FunctionWithStderr
WithStderr sets the [Executor]'s standard error [io.Writer].
executor.go:584
FunctionWithStdin
WithStdin sets the [Executor]'s standard input [io.Reader].
executor.go:558
FunctionWithStdout
WithStdout sets the [Executor]'s standard output [io.Writer].
executor.go:571
FunctionWithSummary
WithSummary tells the [Executor] to output a summary of the given tasks instead of running them.
executor.go:460
FunctionWithTaskSorter
WithTaskSorter sets the sorter that the [Executor] will use to sort tasks. By default, the sorter is set to sort tasks alphabetically, but with tasks
executor.go:545
FunctionWithTempDir
WithTempDir sets the temporary directory that will be used by [Executor] for storing temporary files like checksums and cached remote files. By defaul
executor.go:157
FunctionWithTempDirPath
WithTempDirPath sets an unresolved path used to build [Executor.TempDir] during [Executor.Setup]. Relative paths are resolved from the root Taskfile d
executor.go:173
FunctionWithTimeout
WithTimeout sets the [Executor]'s timeout for fetching remote taskfiles. By default, the timeout is set to 10 seconds.
executor.go:271
FunctionWithTrustedHosts
WithTrustedHosts configures the [Executor] with a list of trusted hosts for remote Taskfiles. Hosts in this list will not prompt for user confirmation
executor.go:257
FunctionWithVerbose
WithVerbose tells the [Executor] to output more information about the tasks that are run.
executor.go:366
FunctionWithVersionCheck
WithVersionCheck tells the [Executor] whether or not to check the version of
executor.go:613
FunctionWithWatch
WithWatch tells the [Executor] to keep running in the background and watch for changes to the fingerprint of the tasks that are run. When changes are
executor.go:352
MethodWrapWriter
(stdOut, _ io.Writer, _ string, cache *templater.Cache)
internal/output/group.go:15
MethodWrapWriter
(stdOut, stdErr io.Writer, _ string, _ *templater.Cache)
internal/output/interleaved.go:11
MethodWrapWriter
(stdOut, _ io.Writer, prefix string, _ *templater.Cache)
internal/output/prefixed.go:31
MethodWrite
(p []byte)
task_test.go:388
MethodWrite
(p []byte)
internal/execext/devnull.go:12
MethodWrite
(p []byte)
internal/output/group.go:37
MethodWrite
(p []byte)
internal/output/prefixed.go:43
FunctionYellow
()
internal/logger/logger.go:67
MethodapplyToExecutorTest
(t *ExecutorTest)
executor_test.go:87
MethodapplyToExecutorTest
(t *ExecutorTest)
executor_test.go:99
MethodapplyToExecutorTest
(t *ExecutorTest)
executor_test.go:112
MethodapplyToExecutorTest
(t *ExecutorTest)
task_test.go:138
MethodapplyToExecutorTest
(t *ExecutorTest)
task_test.go:156
MethodapplyToExecutorTest
(t *ExecutorTest)
task_test.go:175
MethodapplyToExecutorTest
(t *ExecutorTest)
task_test.go:193
MethodapplyToExecutorTest
(t *ExecutorTest)
task_test.go:212
MethodapplyToExecutorTest
(t *ExecutorTest)
task_test.go:232
MethodapplyToExecutorTest
(t *ExecutorTest)
task_test.go:248
MethodapplyToExecutorTest
(t *ExecutorTest)
task_test.go:266
MethodapplyToExecutorTest
(t *ExecutorTest)
task_test.go:286
MethodapplyToFormatterTest
(t *FormatterTest)
formatter_test.go:81
MethodapplyToFormatterTest
(t *FormatterTest)
formatter_test.go:93
MethodapplyToFormatterTest
(t *FormatterTest)
task_test.go:142
MethodapplyToFormatterTest
(t *FormatterTest)
task_test.go:160
MethodapplyToFormatterTest
(t *FormatterTest)
task_test.go:179
MethodapplyToFormatterTest
(t *FormatterTest)
task_test.go:197
MethodapplyToFormatterTest
(t *FormatterTest)
task_test.go:216
MethodapplyToFormatterTest
(t *FormatterTest)
task_test.go:236
MethodapplyToFormatterTest
(t *FormatterTest)
task_test.go:252
MethodapplyToFormatterTest
(t *FormatterTest)
task_test.go:270
MethodapplyToFormatterTest
(t *FormatterTest)
task_test.go:291
FunctioncatLines
(s string)
internal/templater/funcs.go:72
FunctionemptyFunc
()
concurrency.go:25
FunctionexeExt
()
internal/templater/funcs.go:82
FunctionfromYaml
(v string)
internal/templater/funcs.go:123
FunctiongetEnvAs
getEnvAs parses a TASK_ prefixed env var as type T
internal/flags/flags.go:333
Functiongoarch
()
internal/templater/funcs.go:68
Functiongoos
()
internal/templater/funcs.go:64
Functioninit
()
task_test.go:36
Functioninit
()
internal/execext/coreutils.go:12
Functioninit
()
internal/version/version.go:16
Functioninit
()
internal/flags/flags.go:93
Functioninit
()
internal/templater/funcs.go:24
Functioninit
()
cmd/release/main.go:29
Functioninit
()
taskfile/snippet.go:23
FunctionjoinEnv
(elem ...string)
internal/templater/funcs.go:102
FunctionjoinUrl
(elem ...string)
internal/templater/funcs.go:106
Functionmain
example: v0.0.9-8-g941583d027-dirty
cmd/sleepit/sleepit.go:25
Functionmain
()
cmd/release/main.go:34
Functionmain
()
cmd/task/task.go:23
Functionmerge
(base map[string]any, v ...map[string]any)
internal/templater/funcs.go:110
FunctionmustToYaml
(v any)
internal/templater/funcs.go:139
FunctionopenHandler
(ctx context.Context, path string, flag int, perm os.FileMode)
internal/execext/exec.go:152
MethodsetupFuzzyModel
()
setup.go:110
FunctionshellQuote
(str string)
internal/templater/funcs.go:89
FunctionsplitArgs
(s string)
internal/templater/funcs.go:93
FunctionsplitLines
(s string)
internal/templater/funcs.go:77
FunctiontaskfileHash
(vertex *TaskfileVertex)
taskfile/ast/graph.go:24
FunctiontoYaml
(v any)
internal/templater/funcs.go:134
← previous901–992 of 992, ranked by callers