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
↓ 2 callers
Method
compiledTask
(call *Call, evaluateShVars bool)
variables.go:92
↓ 2 callers
Function
formatVarValue
formatVarValue formats a variable value based on its type. Handles static values, shell commands (sh:), references (ref:), and maps.
internal/summary/summary.go:203
↓ 2 callers
Function
generateTestCACert
generateTestCACert generates a self-signed CA certificate for testing
taskfile/node_http_test.go:255
↓ 2 callers
Function
getEnvVarNames
()
internal/summary/summary.go:276
↓ 2 callers
Function
getMaxTime
(files ...string)
internal/fingerprint/sources_timestamp.go:132
↓ 2 callers
Method
getSpecialVars
(t *ast.Task, call *Call)
compiler.go:206
↓ 2 callers
Function
isContextError
(err error)
watch.go:147
↓ 2 callers
Function
itemsFromFor
( f *ast.For, dir string, sources []*ast.Glob, generates []*ast.Glob, gitignore bool, vars *ast.Vars, l
variables.go:357
↓ 2 callers
Method
newPrompter
()
requires.go:18
↓ 2 callers
Method
parsePlatform
parsePlatform takes a string representing an OS/Arch combination (or either on their own) and parses it into the Platform struct. It returns an error
taskfile/ast/platforms.go:56
↓ 2 callers
Function
release
()
cmd/release/main.go:41
↓ 2 callers
Function
resolveMatrixRefs
resolveMatrixRefs resolves any `ref:` rows in matrix and returns a new Matrix with those rows populated. It must not mutate the matrix passed in: that
variables.go:457
↓ 2 callers
Method
runCommand
(ctx context.Context, t *ast.Task, call *Call, i int)
task.go:364
↓ 2 callers
Function
shouldRunOnCurrentPlatform
(platforms []*ast.Platform)
task.go:608
↓ 2 callers
Method
shouldTaskUseGitignore
shouldTaskUseGitignore resolves whether gitignore filtering applies to a task: the task-level value takes precedence, falling back to the Taskfile's g
variables.go:25
↓ 2 callers
Function
supervisor
( sleep time.Duration, cleanup time.Duration, termAfter int, sigCh <-chan os.Signal, )
cmd/sleepit/sleepit.go:86
↓ 2 callers
Method
timestampPath
()
taskfile/node_cache.go:101
↓ 2 callers
Function
worker
Start a worker goroutine and return immediately a `workerDone` channel. The goroutine will prepend its prints with the prefix `name`. The goroutine wi
cmd/sleepit/sleepit.go:136
↓ 2 callers
Method
writeFixtureErrSetup
writeFixtureErrSetup is a wrapper for writing the output of an error during the setup phase of the task to a fixture file.
task_test.go:117
↓ 2 callers
Method
writeLine
(line string)
internal/output/prefixed.go:82
↓ 2 callers
Method
writeOutputLines
(force bool)
internal/output/prefixed.go:56
↓ 1 callers
Method
AddNamespace
(namespacePath []string, task Task)
internal/editors/output.go:51
↓ 1 callers
Function
AlphaNumericWithRootTasksFirst
AlphaNumericWithRootTasksFirst sorts the JSON output so that tasks are in alpha numeric order by task name. It will also ensure that tasks that are no
internal/sort/sorter.go:28
↓ 1 callers
Method
ApplyToExecutor
(*Executor)
executor.go:23
↓ 1 callers
Method
ApplyToSnippet
(*Snippet)
taskfile/snippet.go:38
↓ 1 callers
Function
BuildFor
Build the Output for the requested ast.Output.
internal/output/output.go:19
↓ 1 callers
Method
CacheKey
()
taskfile/node.go:30
↓ 1 callers
Method
CacheKey
()
taskfile/node_git.go:219
↓ 1 callers
Method
CacheKey
()
taskfile/node_http.go:170
↓ 1 callers
Method
ChecksumPrompt
(checksum string)
taskfile/node_cache.go:76
↓ 1 callers
Function
CleanGitCache
()
taskfile/node_git.go:51
↓ 1 callers
Method
Code
()
errors/errors_task.go:45
↓ 1 callers
Method
Code
()
errors/errors.go:49
↓ 1 callers
Function
Dotenv
(vars *ast.Vars, tf *ast.Taskfile, dir string)
taskfile/dotenv.go:14
↓ 1 callers
Function
ExpandFields
ExpandFields is a wrapper around [expand.Fields]. It will escape the input string, expand any shell symbols (such as '~') and resolve any environment
internal/execext/exec.go:126
↓ 1 callers
Method
Filters
Filters returns the slice of FilterFunc which filters a list of ast.Task according to the given ListOptions
help.go:48
↓ 1 callers
Method
FindMatchingTasks
FindMatchingTasks returns a list of tasks that match the given call. A task matches a call if its name is equal to the call's task name, or one of ali
task.go:478
↓ 1 callers
Method
Get
(key string)
taskfile/ast/matrix.go:46
↓ 1 callers
Method
GetChan
GetChan returns a chan of deduplicated [fsnotify.Event]. [fsnotify.Chmod] operations will be skipped.
internal/fsnotifyext/fsnotify_dedup.go:25
↓ 1 callers
Method
GetHash
(t *ast.Task)
hash.go:11
↓ 1 callers
Function
GetTaskEnvBool
GetTaskEnvBool returns the boolean value of a TASK_ prefixed env var. Returns the value and true if set and valid, or false and false if not set or in
internal/env/env.go:69
↓ 1 callers
Function
GetTaskEnvDuration
GetTaskEnvDuration returns the duration value of a TASK_ prefixed env var. Returns the value and true if set and valid, or 0 and false if not set or i
internal/env/env.go:91
↓ 1 callers
Function
GetTaskEnvInt
GetTaskEnvInt returns the integer value of a TASK_ prefixed env var. Returns the value and true if set and valid, or 0 and false if not set or invalid
internal/env/env.go:80
↓ 1 callers
Function
GetTaskEnvString
GetTaskEnvString returns the string value of a TASK_ prefixed env var. Returns the value and true if set (non-empty), or empty string and false if not
internal/env/env.go:102
↓ 1 callers
Function
GetTaskEnvStringSlice
GetTaskEnvStringSlice returns a comma-separated list from a TASK_ prefixed env var. Returns the slice and true if set (non-empty), or nil and false if
internal/env/env.go:109
↓ 1 callers
Method
GetTaskList
(filters ...FilterFunc)
task.go:554
↓ 1 callers
Method
GetTaskfileVariables
()
compiler.go:36
↓ 1 callers
Method
GetVariables
(t *ast.Task, call *Call)
compiler.go:40
↓ 1 callers
Function
GetVersionWithBuildInfo
GetVersionWithBuildInfo is the same as [GetVersion], but it also includes the commit hash and dirty status if available. This will only work when buil
internal/version/version.go:55
↓ 1 callers
Method
InterceptInterruptSignals
NOTE(@andreynering): This function intercepts SIGINT and SIGTERM signals so the Task process is not killed immediately and processes running have time
signals.go:16
↓ 1 callers
Function
IsExtOnly
IsExtOnly checks whether path points to a file with no name but with an extension, i.e. ".yaml"
internal/filepathext/filepathext.go:61
↓ 1 callers
Function
IsKnownOS
NOTE(@andreynering): The lists in this file were copied from: https://github.com/golang/go/blob/master/src/go/build/syslist.go
internal/goext/meta.go:7
↓ 1 callers
Method
Keys
Keys returns an iterator that loops over all task keys in the order specified by the sorter.
taskfile/ast/tasks.go:99
↓ 1 callers
Method
Keys
Keys returns an iterator that loops over all task keys.
taskfile/ast/vars.go:83
↓ 1 callers
Method
ListTaskNames
ListTaskNames prints only the task names in a Taskfile. Only tasks with a non-empty description are printed if allTasks is false. Otherwise, all task
help.go:112
↓ 1 callers
Method
Location
()
taskfile/node_file.go:48
↓ 1 callers
Function
MaskSecrets
MaskSecrets replaces template placeholders with their values, masking secrets. This function uses the Go templater to resolve all variables ({{.VAR}})
internal/templater/secrets.go:10
↓ 1 callers
Function
NewCacheNode
(source RemoteNode, dir string)
taskfile/node_cache.go:18
↓ 1 callers
Function
NewDeduper
(w *fsnotify.Watcher, waitTime time.Duration)
internal/fsnotifyext/fsnotify_dedup.go:15
↓ 1 callers
Function
NewFileNode
(entrypoint, dir string, opts ...NodeOption)
taskfile/node_file.go:20
↓ 1 callers
Function
NewMockSourcesCheckable
NewMockSourcesCheckable creates a new instance of MockSourcesCheckable. It also registers a testing interface on the mock and a cleanup function to as
internal/fingerprint/checker_mock.go:98
↓ 1 callers
Function
NewMockStatusCheckable
NewMockStatusCheckable creates a new instance of MockStatusCheckable. It also registers a testing interface on the mock and a cleanup function to asse
internal/fingerprint/checker_mock.go:16
↓ 1 callers
Function
NewReader
NewReader constructs a new Taskfile [Reader] using the given Node and options.
taskrc/reader.go:27
↓ 1 callers
Function
NewReader
NewReader constructs a new Taskfile [Reader] using the given Node and options.
taskfile/reader.go:62
↓ 1 callers
Function
NewRootNode
( entrypoint string, dir string, insecure bool, timeout time.Duration, opts ...NodeOption, )
taskfile/node.go:33
↓ 1 callers
Function
NewStatusChecker
(logger *logger.Logger)
internal/fingerprint/status.go:16
↓ 1 callers
Function
NewStdinNode
(dir string)
taskfile/node_stdin.go:17
↓ 1 callers
Function
NewTask
(task *ast.Task)
internal/editors/output.go:32
↓ 1 callers
Function
NewTaskfileGraph
()
taskfile/ast/graph.go:28
↓ 1 callers
Function
NoSort
NoSort leaves the tasks in the order they are defined.
internal/sort/sorter.go:13
↓ 1 callers
Method
OnError
(t *ast.Task)
internal/fingerprint/checker.go:18
↓ 1 callers
Method
Options
Options loops through the given [ReaderOption] functions and applies them to the [Reader].
taskrc/reader.go:37
↓ 1 callers
Method
Options
Options loops through the given [SnippetOption] functions and applies them to the [Snippet].
taskfile/snippet.go:81
↓ 1 callers
Method
Options
Options loops through the given [ReaderOption] functions and applies them to the [Reader].
taskfile/reader.go:81
↓ 1 callers
Method
PrintExperiments
()
internal/logger/logger.go:219
↓ 1 callers
Function
PrintTasks
(l *logger.Logger, t *ast.Taskfile, c []string)
internal/summary/summary.go:12
↓ 1 callers
Method
Read
()
taskfile/node_cache.go:27
↓ 1 callers
Method
ReadChecksum
()
taskfile/node_cache.go:57
↓ 1 callers
Method
ReadContext
(ctx context.Context)
taskfile/node.go:29
↓ 1 callers
Method
ReadContext
(ctx context.Context)
taskfile/node_git.go:161
↓ 1 callers
Method
ReadContext
(ctx context.Context)
taskfile/node_http.go:108
↓ 1 callers
Method
ReadTimestamp
()
taskfile/node_cache.go:38
↓ 1 callers
Function
RemoteExists
RemoteExists will check if a file at the given URL Exists. If it does, it will return its URL. If it does not, it will search the search for any files
taskfile/taskfile.go:41
↓ 1 callers
Function
ReplaceVar
(v ast.Var, cache *Cache)
internal/templater/templater.go:129
↓ 1 callers
Method
ResetCache
ResetCache clear the dynamic variables cache
compiler.go:199
↓ 1 callers
Method
ResetCache
()
internal/templater/templater.go:26
↓ 1 callers
Method
ResolveDir
(dir string)
taskfile/node.go:24
↓ 1 callers
Method
ResolveEntrypoint
(entrypoint string)
taskfile/node.go:23
↓ 1 callers
Method
ReverseMerge
ReverseMerge merges other variables with the existing variables in vars, but keeps the other variables first in order. If the include parameter is not
taskfile/ast/vars.go:143
↓ 1 callers
Function
SearchAll
SearchAll looks for files with the given possible filenames using the given entrypoint and directory. If the entrypoint is set, it checks if the entry
internal/fsext/fs.go:94
↓ 1 callers
Function
SearchPathRecursively
SearchPathRecursively walks up the directory tree starting at the given path, calling the Search function in each directory until it finds a matching
internal/fsext/fs.go:154
↓ 1 callers
Method
Select
Select prompts the user to select from a list of options
internal/input/input.go:54
↓ 1 callers
Method
ShouldListTasks
ShouldListTasks returns true if one of the options to list tasks has been set to true
help.go:42
↓ 1 callers
Method
ToEditorOutput
(tasks []*ast.Task, noStatus bool, nested bool)
help.go:140
↓ 1 callers
Function
ToQuotedString
(args []string)
args/args.go:44
↓ 1 callers
Function
TraverseStringsFunc
TraverseStringsFunc runs the given function on every string in the given value by traversing it recursively. If the given value is a string, the funct
internal/deepcopy/deepcopy.go:73
↓ 1 callers
Method
Unwrap
()
errors/errors_task.go:57
↓ 1 callers
Function
Validate
Validate checks if any experiments have been enabled while being inactive. If one is found, the function returns an error.
experiments/experiments.go:52
↓ 1 callers
Function
Validate
()
internal/flags/flags.go:206
↓ 1 callers
Method
Warnf
(message string, args ...any)
internal/logger/logger.go:185
← previous
next →
201–300 of 992, ranked by callers