Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/go-task/task
/ functions
Functions
992 in github.com/go-task/task
⨍
Functions
992
◇
Types & classes
215
↓ 1 callers
Method
WildcardMatch
WildcardMatch will check if the given string matches the name of the Task and returns any wildcard values.
taskfile/ast/task.go:86
↓ 1 callers
Function
WithCacheExpiryDuration
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 callers
Function
WithChecksum
(checksum string)
taskfile/node_base.go:39
↓ 1 callers
Function
WithDebugFunc
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 callers
Function
WithDownload
WithDownload forces the [Reader] to download a fresh copy of the taskfile from the remote source.
taskfile/reader.go:103
↓ 1 callers
Function
WithExperiment
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 callers
Method
WithFileInfo
(location string, snippet string)
errors/error_taskfile_decode.go:123
↓ 1 callers
Function
WithFlags
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 callers
Function
WithInsecure
WithInsecure allows the [Reader] to make insecure connections when reading remote taskfiles. By default, insecure connections are rejected.
taskfile/reader.go:89
↓ 1 callers
Function
WithNoIndicators
WithNoIndicators specifies that the [Snippet] should not include line or column indicators.
taskfile/snippet.go:130
↓ 1 callers
Function
WithOffline
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 callers
Function
WithParent
(parent Node)
taskfile/node_base.go:33
↓ 1 callers
Function
WithPromptFunc
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 callers
Function
WithReaderCACert
WithReaderCACert sets the path to a custom CA certificate for TLS connections.
taskfile/reader.go:207
↓ 1 callers
Function
WithReaderCert
WithReaderCert sets the path to a client certificate for TLS connections.
taskfile/reader.go:220
↓ 1 callers
Function
WithReaderCertKey
WithReaderCertKey sets the path to a client certificate key for TLS connections.
taskfile/reader.go:233
↓ 1 callers
Function
WithSourcesChecker
(checker SourcesCheckable)
internal/fingerprint/task.go:52
↓ 1 callers
Function
WithStatusChecker
(checker StatusCheckable)
internal/fingerprint/task.go:46
↓ 1 callers
Function
WithStatusError
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 callers
Function
WithTempDir
WithTempDir sets the temporary directory that will be used by the [Reader]. By default, the reader uses [os.TempDir].
taskfile/reader.go:145
↓ 1 callers
Function
WithTrustedHosts
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 callers
Method
WriteChecksum
(checksum string)
taskfile/node_cache.go:62
↓ 1 callers
Method
WriteTimestamp
(t time.Time)
taskfile/node_cache.go:50
↓ 1 callers
Method
acquireConcurrencyLimit
()
concurrency.go:3
↓ 1 callers
Function
anyFileNewerThan
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 callers
Method
applyToExecutorTest
(*ExecutorTest)
executor_test.go:23
↓ 1 callers
Method
applyToFormatterTest
(*FormatterTest)
formatter_test.go:19
↓ 1 callers
Method
areTaskPreconditionsMet
(ctx context.Context, t *ast.Task)
precondition.go:16
↓ 1 callers
Method
areTaskRequiredVarsAllowedValuesSet
(t *ast.Task)
requires.go:183
↓ 1 callers
Function
bumpVersion
(version *semver.Version, verb string)
cmd/release/main.go:79
↓ 1 callers
Function
changelog
(version *semver.Version)
cmd/release/main.go:93
↓ 1 callers
Method
close
()
internal/output/group.go:41
↓ 1 callers
Method
close
()
internal/output/prefixed.go:52
↓ 1 callers
Function
closeOnInterrupt
(w *fsnotify.Watcher)
watch.go:155
↓ 1 callers
Method
combinedBuff
()
internal/output/group.go:54
↓ 1 callers
Function
digits
(number int)
taskfile/snippet.go:181
↓ 1 callers
Function
dirOption
(path string)
internal/execext/exec.go:159
↓ 1 callers
Function
doSomeWork
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 callers
Method
doVersionChecks
()
setup.go:278
↓ 1 callers
Function
escape
(s string)
internal/execext/exec.go:93
↓ 1 callers
Function
execHandlers
()
internal/execext/exec.go:145
↓ 1 callers
Function
expectedOutput
()
internal/summary/summary_test.go:121
↓ 1 callers
Function
filterGitignored
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 callers
Function
findRepoRoot
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 callers
Function
formatMap
formatMap formats a map value with proper indentation for YAML.
internal/summary/summary.go:234
↓ 1 callers
Function
generateTestCertAndKey
generateTestCertAndKey generates a self-signed certificate and key for testing
taskfile/node_http_test.go:213
↓ 1 callers
Function
getCommit
(info *debug.BuildInfo)
internal/version/version.go:35
↓ 1 callers
Function
getDirty
(info *debug.BuildInfo)
internal/version/version.go:26
↓ 1 callers
Function
getEnv
(xName string)
experiments/experiments.go:65
↓ 1 callers
Function
getFilePath
(filename, dir string)
experiments/experiments.go:70
↓ 1 callers
Method
getLockForRepo
(cacheKey string)
taskfile/node_git.go:36
↓ 1 callers
Method
getOrCloneRepo
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 callers
Method
getRootNode
()
setup.go:56
↓ 1 callers
Function
getTaskPath
()
signals_test.go:190
↓ 1 callers
Function
getVersion
(filename string)
cmd/release/main.go:71
↓ 1 callers
Method
globMatch
(path []string, isDir bool)
internal/gitignore/pattern.go:117
↓ 1 callers
Function
goldenFileName
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 callers
Function
hasDefaultTaskfile
(dir string)
init.go:43
↓ 1 callers
Function
hasDescription
(t *ast.Task)
internal/summary/summary.go:84
↓ 1 callers
Function
hasSecrets
hasSecrets reports whether any variable is marked as secret.
internal/templater/secrets.go:54
↓ 1 callers
Function
hasSummary
(t *ast.Task)
internal/summary/summary.go:52
↓ 1 callers
Function
ignored
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 callers
Method
include
(ctx context.Context, node Node)
taskfile/reader.go:292
↓ 1 callers
Function
isCI
isCI returns true if running in a CI environment
internal/flags/flags.go:201
↓ 1 callers
Function
isSpecialDir
(dir string)
internal/filepathext/filepathext.go:34
↓ 1 callers
Method
isTrusted
isTrusted checks if a URI's host matches any of the trusted hosts patterns.
taskfile/reader.go:276
↓ 1 callers
Function
isTypeAllowed
(v any)
internal/env/env.go:54
↓ 1 callers
Function
listDifference
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 callers
Function
listIntersection
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 callers
Function
maxTime
(a, b time.Time)
internal/fingerprint/sources_timestamp.go:144
↓ 1 callers
Method
mkdir
(t *ast.Task)
task.go:301
↓ 1 callers
Function
mustFromYaml
(v string)
internal/templater/funcs.go:128
↓ 1 callers
Method
name
(file string)
task_test.go:404
↓ 1 callers
Function
newSelectModel
(varName string, options []string)
internal/input/input.go:151
↓ 1 callers
Function
newTextModel
(varName string)
internal/input/input.go:96
↓ 1 callers
Method
parseArch
(arch string)
taskfile/ast/platforms.go:89
↓ 1 callers
Function
parseGitignoreLines
(path string)
internal/fingerprint/gitignore.go:193
↓ 1 callers
Method
parseOsOrArch
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 callers
Function
printNoDescriptionOrSummary
(l *logger.Logger)
internal/summary/summary.go:92
↓ 1 callers
Function
printTaskAliases
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:72
↓ 1 callers
Function
printTaskCommands
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:109
↓ 1 callers
Function
printTaskDependencies
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:96
↓ 1 callers
Function
printTaskDescribingText
(t *ast.Task, l *logger.Logger)
internal/summary/summary.go:42
↓ 1 callers
Function
printTaskDescription
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:88
↓ 1 callers
Function
printTaskEnv
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:170
↓ 1 callers
Function
printTaskName
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:66
↓ 1 callers
Function
printTaskRequires
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:250
↓ 1 callers
Function
printTaskSummary
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:56
↓ 1 callers
Function
printTaskVars
(l *logger.Logger, t *ast.Task)
internal/summary/summary.go:132
↓ 1 callers
Function
product
product generates the cartesian product of the input map of slices.
variables.go:519
↓ 1 callers
Method
promptDepsVars
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 callers
Method
promptTaskVars
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 callers
Method
promptf
(format string, a ...any)
taskfile/reader.go:268
↓ 1 callers
Function
readDotEnv
(dir string)
experiments/experiments.go:77
↓ 1 callers
Method
readDotEnvFiles
()
setup.go:227
↓ 1 callers
Function
readGitignoreLines
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 callers
Method
readNode
(ctx context.Context, node Node)
taskfile/reader.go:407
↓ 1 callers
Method
readNodeContent
(ctx context.Context, node Node)
taskfile/reader.go:449
↓ 1 callers
Method
readRemoteNodeContent
(ctx context.Context, node RemoteNode)
taskfile/reader.go:473
↓ 1 callers
Method
readTaskfile
(node taskfile.Node)
setup.go:75
← previous
next →
301–400 of 992, ranked by callers