MCPcopy Index your code
hub / github.com/go-task/task / NewTask

Function NewTask

internal/editors/output.go:32–49  ·  view source on GitHub ↗
(task *ast.Task)

Source from the content-addressed store, hash-verified

30)
31
32func NewTask(task *ast.Task) Task {
33 aliases := []string{}
34 if len(task.Aliases) > 0 {
35 aliases = task.Aliases
36 }
37 return Task{
38 Name: task.Name(),
39 Task: task.Task,
40 Desc: task.Desc,
41 Summary: task.Summary,
42 Aliases: aliases,
43 Location: &Location{
44 Line: task.Location.Line,
45 Column: task.Location.Column,
46 Taskfile: task.Location.Taskfile,
47 },
48 }
49}
50
51func (parent *Namespace) AddNamespace(namespacePath []string, task Task) {
52 if len(namespacePath) == 0 {

Callers 1

ToEditorOutputMethod · 0.92

Calls 1

NameMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…