MCPcopy Create free account

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

Functions992 in github.com/go-task/task

↓ 2 callersMethodcompiledTask
(call *Call, evaluateShVars bool)
variables.go:92
↓ 2 callersFunctionformatVarValue
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 callersFunctiongenerateTestCACert
generateTestCACert generates a self-signed CA certificate for testing
taskfile/node_http_test.go:255
↓ 2 callersFunctiongetEnvVarNames
()
internal/summary/summary.go:276
↓ 2 callersFunctiongetMaxTime
(files ...string)
internal/fingerprint/sources_timestamp.go:132
↓ 2 callersMethodgetSpecialVars
(t *ast.Task, call *Call)
compiler.go:206
↓ 2 callersFunctionisContextError
(err error)
watch.go:147
↓ 2 callersFunctionitemsFromFor
( f *ast.For, dir string, sources []*ast.Glob, generates []*ast.Glob, gitignore bool, vars *ast.Vars, l
variables.go:357
↓ 2 callersMethodnewPrompter
()
requires.go:18
↓ 2 callersMethodparsePlatform
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 callersFunctionrelease
()
cmd/release/main.go:41
↓ 2 callersFunctionresolveMatrixRefs
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 callersMethodrunCommand
(ctx context.Context, t *ast.Task, call *Call, i int)
task.go:364
↓ 2 callersFunctionshouldRunOnCurrentPlatform
(platforms []*ast.Platform)
task.go:608
↓ 2 callersMethodshouldTaskUseGitignore
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 callersFunctionsupervisor
( sleep time.Duration, cleanup time.Duration, termAfter int, sigCh <-chan os.Signal, )
cmd/sleepit/sleepit.go:86
↓ 2 callersMethodtimestampPath
()
taskfile/node_cache.go:101
↓ 2 callersFunctionworker
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 callersMethodwriteFixtureErrSetup
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 callersMethodwriteLine
(line string)
internal/output/prefixed.go:82
↓ 2 callersMethodwriteOutputLines
(force bool)
internal/output/prefixed.go:56
↓ 1 callersMethodAddNamespace
(namespacePath []string, task Task)
internal/editors/output.go:51
↓ 1 callersFunctionAlphaNumericWithRootTasksFirst
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 callersMethodApplyToExecutor
(*Executor)
executor.go:23
↓ 1 callersMethodApplyToSnippet
(*Snippet)
taskfile/snippet.go:38
↓ 1 callersFunctionBuildFor
Build the Output for the requested ast.Output.
internal/output/output.go:19
↓ 1 callersMethodCacheKey
()
taskfile/node.go:30
↓ 1 callersMethodCacheKey
()
taskfile/node_git.go:219
↓ 1 callersMethodCacheKey
()
taskfile/node_http.go:170
↓ 1 callersMethodChecksumPrompt
(checksum string)
taskfile/node_cache.go:76
↓ 1 callersFunctionCleanGitCache
()
taskfile/node_git.go:51
↓ 1 callersMethodCode
()
errors/errors_task.go:45
↓ 1 callersMethodCode
()
errors/errors.go:49
↓ 1 callersFunctionDotenv
(vars *ast.Vars, tf *ast.Taskfile, dir string)
taskfile/dotenv.go:14
↓ 1 callersFunctionExpandFields
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 callersMethodFilters
Filters returns the slice of FilterFunc which filters a list of ast.Task according to the given ListOptions
help.go:48
↓ 1 callersMethodFindMatchingTasks
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 callersMethodGet
(key string)
taskfile/ast/matrix.go:46
↓ 1 callersMethodGetChan
GetChan returns a chan of deduplicated [fsnotify.Event]. [fsnotify.Chmod] operations will be skipped.
internal/fsnotifyext/fsnotify_dedup.go:25
↓ 1 callersMethodGetHash
(t *ast.Task)
hash.go:11
↓ 1 callersFunctionGetTaskEnvBool
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 callersFunctionGetTaskEnvDuration
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 callersFunctionGetTaskEnvInt
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 callersFunctionGetTaskEnvString
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 callersFunctionGetTaskEnvStringSlice
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 callersMethodGetTaskList
(filters ...FilterFunc)
task.go:554
↓ 1 callersMethodGetTaskfileVariables
()
compiler.go:36
↓ 1 callersMethodGetVariables
(t *ast.Task, call *Call)
compiler.go:40
↓ 1 callersFunctionGetVersionWithBuildInfo
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 callersMethodInterceptInterruptSignals
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 callersFunctionIsExtOnly
IsExtOnly checks whether path points to a file with no name but with an extension, i.e. ".yaml"
internal/filepathext/filepathext.go:61
↓ 1 callersFunctionIsKnownOS
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 callersMethodKeys
Keys returns an iterator that loops over all task keys in the order specified by the sorter.
taskfile/ast/tasks.go:99
↓ 1 callersMethodKeys
Keys returns an iterator that loops over all task keys.
taskfile/ast/vars.go:83
↓ 1 callersMethodListTaskNames
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 callersMethodLocation
()
taskfile/node_file.go:48
↓ 1 callersFunctionMaskSecrets
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 callersFunctionNewCacheNode
(source RemoteNode, dir string)
taskfile/node_cache.go:18
↓ 1 callersFunctionNewDeduper
(w *fsnotify.Watcher, waitTime time.Duration)
internal/fsnotifyext/fsnotify_dedup.go:15
↓ 1 callersFunctionNewFileNode
(entrypoint, dir string, opts ...NodeOption)
taskfile/node_file.go:20
↓ 1 callersFunctionNewMockSourcesCheckable
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 callersFunctionNewMockStatusCheckable
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 callersFunctionNewReader
NewReader constructs a new Taskfile [Reader] using the given Node and options.
taskrc/reader.go:27
↓ 1 callersFunctionNewReader
NewReader constructs a new Taskfile [Reader] using the given Node and options.
taskfile/reader.go:62
↓ 1 callersFunctionNewRootNode
( entrypoint string, dir string, insecure bool, timeout time.Duration, opts ...NodeOption, )
taskfile/node.go:33
↓ 1 callersFunctionNewStatusChecker
(logger *logger.Logger)
internal/fingerprint/status.go:16
↓ 1 callersFunctionNewStdinNode
(dir string)
taskfile/node_stdin.go:17
↓ 1 callersFunctionNewTask
(task *ast.Task)
internal/editors/output.go:32
↓ 1 callersFunctionNewTaskfileGraph
()
taskfile/ast/graph.go:28
↓ 1 callersFunctionNoSort
NoSort leaves the tasks in the order they are defined.
internal/sort/sorter.go:13
↓ 1 callersMethodOnError
(t *ast.Task)
internal/fingerprint/checker.go:18
↓ 1 callersMethodOptions
Options loops through the given [ReaderOption] functions and applies them to the [Reader].
taskrc/reader.go:37
↓ 1 callersMethodOptions
Options loops through the given [SnippetOption] functions and applies them to the [Snippet].
taskfile/snippet.go:81
↓ 1 callersMethodOptions
Options loops through the given [ReaderOption] functions and applies them to the [Reader].
taskfile/reader.go:81
↓ 1 callersMethodPrintExperiments
()
internal/logger/logger.go:219
↓ 1 callersFunctionPrintTasks
(l *logger.Logger, t *ast.Taskfile, c []string)
internal/summary/summary.go:12
↓ 1 callersMethodRead
()
taskfile/node_cache.go:27
↓ 1 callersMethodReadChecksum
()
taskfile/node_cache.go:57
↓ 1 callersMethodReadContext
(ctx context.Context)
taskfile/node.go:29
↓ 1 callersMethodReadContext
(ctx context.Context)
taskfile/node_git.go:161
↓ 1 callersMethodReadContext
(ctx context.Context)
taskfile/node_http.go:108
↓ 1 callersMethodReadTimestamp
()
taskfile/node_cache.go:38
↓ 1 callersFunctionRemoteExists
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 callersFunctionReplaceVar
(v ast.Var, cache *Cache)
internal/templater/templater.go:129
↓ 1 callersMethodResetCache
ResetCache clear the dynamic variables cache
compiler.go:199
↓ 1 callersMethodResetCache
()
internal/templater/templater.go:26
↓ 1 callersMethodResolveDir
(dir string)
taskfile/node.go:24
↓ 1 callersMethodResolveEntrypoint
(entrypoint string)
taskfile/node.go:23
↓ 1 callersMethodReverseMerge
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 callersFunctionSearchAll
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 callersFunctionSearchPathRecursively
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 callersMethodSelect
Select prompts the user to select from a list of options
internal/input/input.go:54
↓ 1 callersMethodShouldListTasks
ShouldListTasks returns true if one of the options to list tasks has been set to true
help.go:42
↓ 1 callersMethodToEditorOutput
(tasks []*ast.Task, noStatus bool, nested bool)
help.go:140
↓ 1 callersFunctionToQuotedString
(args []string)
args/args.go:44
↓ 1 callersFunctionTraverseStringsFunc
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 callersMethodUnwrap
()
errors/errors_task.go:57
↓ 1 callersFunctionValidate
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 callersFunctionValidate
()
internal/flags/flags.go:206
↓ 1 callersMethodWarnf
(message string, args ...any)
internal/logger/logger.go:185
← previousnext →201–300 of 992, ranked by callers