MCPcopy Create free account

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

Functions992 in github.com/go-task/task

↓ 1 callersMethodWildcardMatch
WildcardMatch will check if the given string matches the name of the Task and returns any wildcard values.
taskfile/ast/task.go:86
↓ 1 callersFunctionWithCacheExpiryDuration
WithCacheExpiryDuration sets the duration after which the cache is considered expired. By default, the cache is considered expired after 24 hours.
taskfile/reader.go:159
↓ 1 callersFunctionWithChecksum
(checksum string)
taskfile/node_base.go:39
↓ 1 callersFunctionWithDebugFunc
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
taskfile/reader.go:175
↓ 1 callersFunctionWithDownload
WithDownload forces the [Reader] to download a fresh copy of the taskfile from the remote source.
taskfile/reader.go:103
↓ 1 callersFunctionWithExperiment
WithExperiment sets an experiment to be enabled for the test. This can be called multiple times to enable more than one experiment.
task_test.go:203
↓ 1 callersMethodWithFileInfo
(location string, snippet string)
errors/error_taskfile_decode.go:123
↓ 1 callersFunctionWithFlags
WithFlags is a special internal functional option that is used to pass flags from the CLI into any constructor that accepts functional options.
internal/flags/flags.go:257
↓ 1 callersFunctionWithInsecure
WithInsecure allows the [Reader] to make insecure connections when reading remote taskfiles. By default, insecure connections are rejected.
taskfile/reader.go:89
↓ 1 callersFunctionWithNoIndicators
WithNoIndicators specifies that the [Snippet] should not include line or column indicators.
taskfile/snippet.go:130
↓ 1 callersFunctionWithOffline
WithOffline stops the [Reader] from being able to make network connections. It will still be able to read local files and cached copies of remote file
taskfile/reader.go:117
↓ 1 callersFunctionWithParent
(parent Node)
taskfile/node_base.go:33
↓ 1 callersFunctionWithPromptFunc
WithPromptFunc sets the prompt function to be used by the [Reader]. If set, this function will be called with prompt messages. The function should opt
taskfile/reader.go:194
↓ 1 callersFunctionWithReaderCACert
WithReaderCACert sets the path to a custom CA certificate for TLS connections.
taskfile/reader.go:207
↓ 1 callersFunctionWithReaderCert
WithReaderCert sets the path to a client certificate for TLS connections.
taskfile/reader.go:220
↓ 1 callersFunctionWithReaderCertKey
WithReaderCertKey sets the path to a client certificate key for TLS connections.
taskfile/reader.go:233
↓ 1 callersFunctionWithSourcesChecker
(checker SourcesCheckable)
internal/fingerprint/task.go:52
↓ 1 callersFunctionWithStatusChecker
(checker StatusCheckable)
internal/fingerprint/task.go:46
↓ 1 callersFunctionWithStatusError
WithStatusError tells the test to make an additional call to [task.Executor.Status] after the task has been run. A fixture will be created with the ou
executor_test.go:106
↓ 1 callersFunctionWithTempDir
WithTempDir sets the temporary directory that will be used by the [Reader]. By default, the reader uses [os.TempDir].
taskfile/reader.go:145
↓ 1 callersFunctionWithTrustedHosts
WithTrustedHosts configures the [Reader] with a list of trusted hosts for remote Taskfiles. Hosts in this list will not prompt for user confirmation.
taskfile/reader.go:131
↓ 1 callersMethodWriteChecksum
(checksum string)
taskfile/node_cache.go:62
↓ 1 callersMethodWriteTimestamp
(t time.Time)
taskfile/node_cache.go:50
↓ 1 callersMethodacquireConcurrencyLimit
()
concurrency.go:3
↓ 1 callersFunctionanyFileNewerThan
If the modification time of any of the files is newer than the the given time, returns true. This function is lazy, as it stops when it finds a file n
internal/fingerprint/sources_timestamp.go:153
↓ 1 callersMethodapplyToExecutorTest
(*ExecutorTest)
executor_test.go:23
↓ 1 callersMethodapplyToFormatterTest
(*FormatterTest)
formatter_test.go:19
↓ 1 callersMethodareTaskPreconditionsMet
(ctx context.Context, t *ast.Task)
precondition.go:16
↓ 1 callersMethodareTaskRequiredVarsAllowedValuesSet
(t *ast.Task)
requires.go:183
↓ 1 callersFunctionbumpVersion
(version *semver.Version, verb string)
cmd/release/main.go:79
↓ 1 callersFunctionchangelog
(version *semver.Version)
cmd/release/main.go:93
↓ 1 callersMethodclose
()
internal/output/group.go:41
↓ 1 callersMethodclose
()
internal/output/prefixed.go:52
↓ 1 callersFunctioncloseOnInterrupt
(w *fsnotify.Watcher)
watch.go:155
↓ 1 callersMethodcombinedBuff
()
internal/output/group.go:54
↓ 1 callersFunctiondigits
(number int)
taskfile/snippet.go:181
↓ 1 callersFunctiondirOption
(path string)
internal/execext/exec.go:159
↓ 1 callersFunctiondoSomeWork
Do some work and then return, so that the caller can decide whether to continue or not. Return true when all work is done.
cmd/sleepit/sleepit.go:164
↓ 1 callersMethoddoVersionChecks
()
setup.go:278
↓ 1 callersFunctionescape
(s string)
internal/execext/exec.go:93
↓ 1 callersFunctionexecHandlers
()
internal/execext/exec.go:145
↓ 1 callersFunctionexpectedOutput
()
internal/summary/summary_test.go:121
↓ 1 callersFunctionfilterGitignored
filterGitignored marks entries matching gitignore rules as excluded (false). All .gitignore files from the repo root down to each candidate file's dir
internal/fingerprint/gitignore.go:54
↓ 1 callersFunctionfindRepoRoot
findRepoRoot returns the first ancestor of dir containing a .git entry, or ("", false) when dir is not inside a git repository.
internal/fingerprint/gitignore.go:27
↓ 1 callersFunctionformatMap
formatMap formats a map value with proper indentation for YAML.
internal/summary/summary.go:234
↓ 1 callersFunctiongenerateTestCertAndKey
generateTestCertAndKey generates a self-signed certificate and key for testing
taskfile/node_http_test.go:213
↓ 1 callersFunctiongetCommit
(info *debug.BuildInfo)
internal/version/version.go:35
↓ 1 callersFunctiongetDirty
(info *debug.BuildInfo)
internal/version/version.go:26
↓ 1 callersFunctiongetEnv
(xName string)
experiments/experiments.go:65
↓ 1 callersFunctiongetFilePath
(filename, dir string)
experiments/experiments.go:70
↓ 1 callersMethodgetLockForRepo
(cacheKey string)
taskfile/node_git.go:36
↓ 1 callersMethodgetOrCloneRepo
getOrCloneRepo returns the path to a cached git repository. If the repository is not cached, it clones it first. This function is thread-safe: multipl
taskfile/node_git.go:124
↓ 1 callersMethodgetRootNode
()
setup.go:56
↓ 1 callersFunctiongetTaskPath
()
signals_test.go:190
↓ 1 callersFunctiongetVersion
(filename string)
cmd/release/main.go:71
↓ 1 callersMethodglobMatch
(path []string, isDir bool)
internal/gitignore/pattern.go:117
↓ 1 callersFunctiongoldenFileName
goldenFileName makes the file path for fixture files safe for all well-known operating systems. Windows in particular has a lot of restrictions the ch
task_test.go:57
↓ 1 callersFunctionhasDefaultTaskfile
(dir string)
init.go:43
↓ 1 callersFunctionhasDescription
(t *ast.Task)
internal/summary/summary.go:84
↓ 1 callersFunctionhasSecrets
hasSecrets reports whether any variable is marked as secret.
internal/templater/secrets.go:54
↓ 1 callersFunctionhasSummary
(t *ast.Task)
internal/summary/summary.go:52
↓ 1 callersFunctionignored
ignored honors Git's rule that a file under an ignored directory cannot be re-included by a deeper negation: if any ancestor directory is ignored, so
internal/fingerprint/gitignore.go:154
↓ 1 callersMethodinclude
(ctx context.Context, node Node)
taskfile/reader.go:292
↓ 1 callersFunctionisCI
isCI returns true if running in a CI environment
internal/flags/flags.go:201
↓ 1 callersFunctionisSpecialDir
(dir string)
internal/filepathext/filepathext.go:34
↓ 1 callersMethodisTrusted
isTrusted checks if a URI's host matches any of the trusted hosts patterns.
taskfile/reader.go:276
↓ 1 callersFunctionisTypeAllowed
(v any)
internal/env/env.go:54
↓ 1 callersFunctionlistDifference
Return the difference of the two lists: the elements that are present in the first list, but not in the second one. The notion of presence is not with
signals_test.go:206
↓ 1 callersFunctionlistIntersection
Return the intersection of the two lists: the elements that are present in both lists. The notion of presence is not with '=' but with string.Contains
signals_test.go:227
↓ 1 callersFunctionmaxTime
(a, b time.Time)
internal/fingerprint/sources_timestamp.go:144
↓ 1 callersMethodmkdir
(t *ast.Task)
task.go:301
↓ 1 callersFunctionmustFromYaml
(v string)
internal/templater/funcs.go:128
↓ 1 callersMethodname
(file string)
task_test.go:404
↓ 1 callersFunctionnewSelectModel
(varName string, options []string)
internal/input/input.go:151
↓ 1 callersFunctionnewTextModel
(varName string)
internal/input/input.go:96
↓ 1 callersMethodparseArch
(arch string)
taskfile/ast/platforms.go:89
↓ 1 callersFunctionparseGitignoreLines
(path string)
internal/fingerprint/gitignore.go:193
↓ 1 callersMethodparseOsOrArch
parseOsOrArch will check if the given input is a valid OS or Arch value. If so, it will store it. If not, an error is returned
taskfile/ast/platforms.go:74
↓ 1 callersFunctionprintNoDescriptionOrSummary
(l *logger.Logger)
internal/summary/summary.go:92
↓ 1 callersFunctionprintTaskAliases
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:72
↓ 1 callersFunctionprintTaskCommands
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:109
↓ 1 callersFunctionprintTaskDependencies
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:96
↓ 1 callersFunctionprintTaskDescribingText
(t *ast.Task, l *logger.Logger)
internal/summary/summary.go:42
↓ 1 callersFunctionprintTaskDescription
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:88
↓ 1 callersFunctionprintTaskEnv
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:170
↓ 1 callersFunctionprintTaskName
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:66
↓ 1 callersFunctionprintTaskRequires
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:250
↓ 1 callersFunctionprintTaskSummary
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:56
↓ 1 callersFunctionprintTaskVars
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:132
↓ 1 callersFunctionproduct
product generates the cartesian product of the input map of slices.
variables.go:519
↓ 1 callersMethodpromptDepsVars
promptDepsVars traverses the dependency tree, collects all missing required variables, and prompts for them upfront. This is used for deps which execu
requires.go:30
↓ 1 callersMethodpromptTaskVars
promptTaskVars prompts for any missing required vars from a single task. Used for sequential task calls (cmds) where we can prompt just-in-time. Retur
requires.go:102
↓ 1 callersMethodpromptf
(format string, a ...any)
taskfile/reader.go:268
↓ 1 callersFunctionreadDotEnv
(dir string)
experiments/experiments.go:77
↓ 1 callersMethodreadDotEnvFiles
()
setup.go:227
↓ 1 callersFunctionreadGitignoreLines
readGitignoreLines returns the .gitignore lines in dir (nil if none), cached per directory and invalidated by mtime so watch mode picks up edits.
internal/fingerprint/gitignore.go:173
↓ 1 callersMethodreadNode
(ctx context.Context, node Node)
taskfile/reader.go:407
↓ 1 callersMethodreadNodeContent
(ctx context.Context, node Node)
taskfile/reader.go:449
↓ 1 callersMethodreadRemoteNodeContent
(ctx context.Context, node RemoteNode)
taskfile/reader.go:473
↓ 1 callersMethodreadTaskfile
(node taskfile.Node)
setup.go:75
← previousnext →301–400 of 992, ranked by callers