{"modulePath":"github.com/Go-Task/task","version":"v2.2.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package taskfile\n\n## Constants\n\n```go\nconst NamespaceSeparator = \":\"\n```\nNamespaceSeparator contains the character that separates namescapes\n\n## Variables\n\n```go\nvar (\n\t// ErrCantUnmarshalCmd is returned for invalid command YAML\n\tErrCantUnmarshalCmd = errors.New(\"task: can't unmarshal cmd value\")\n\t// ErrCantUnmarshalDep is returned for invalid dependency YAML\n\tErrCantUnmarshalDep = errors.New(\"task: can't unmarshal dep value\")\n)\n```\n\n```go\nvar (\n\t// ErrCantUnmarshalVar is returned for invalid var YAML.\n\tErrCantUnmarshalVar = errors.New(\"task: can't unmarshal var value\")\n)\n```\n\n## Functions\n\n```go\nfunc Merge(t1, t2 *Taskfile, namespaces ...string) error\n```\nMerge merges the second Taskfile into the first\n\n## Types\n\n```go\ntype Call struct {\n\tTask string\n\tVars Vars\n}\n```\nCall is the parameters to a task call\n\n```go\ntype Cmd struct {\n\tCmd         string\n\tSilent      bool\n\tTask        string\n\tVars        Vars\n\tIgnoreError bool\n}\n```\nCmd is a task command\n\n```go\nfunc (c *Cmd) UnmarshalYAML(unmarshal func(interface{}) error) error\n```\nUnmarshalYAML implements yaml.Unmarshaler interface\n\n```go\ntype Dep struct {\n\tTask string\n\tVars Vars\n}\n```\nDep is a task dependency\n\n```go\nfunc (d *Dep) UnmarshalYAML(unmarshal func(interface{}) error) error\n```\nUnmarshalYAML implements yaml.Unmarshaler interface\n\n```go\ntype Task struct {\n\tTask        string\n\tCmds        []*Cmd\n\tDeps        []*Dep\n\tDesc        string\n\tSources     []string\n\tGenerates   []string\n\tStatus      []string\n\tDir         string\n\tVars        Vars\n\tEnv         Vars\n\tSilent      bool\n\tMethod      string\n\tPrefix      string\n\tIgnoreError bool `yaml:\"ignore_error\"`\n}\n```\nTask represents a task\n\n```go\ntype Taskfile struct {\n\tVersion    string\n\tExpansions int\n\tOutput     string\n\tIncludes   map[string]string\n\tVars       Vars\n\tTasks      Tasks\n}\n```\nTaskfile represents a Taskfile.yml\n\n```go\nfunc (tf *Taskfile) UnmarshalYAML(unmarshal func(interface{}) error) error\n```\nUnmarshalYAML implements yaml.Unmarshaler interface\n\n```go\ntype Tasks map[string]*Task\n```\nTasks representas a group of tasks\n\n```go\ntype Var struct {\n\tStatic string\n\tSh     string\n}\n```\nVar represents either a static or dynamic variable.\n\n```go\nfunc (v *Var) UnmarshalYAML(unmarshal func(interface{}) error) error\n```\nUnmarshalYAML implements yaml.Unmarshaler interface.\n\n```go\ntype Vars map[string]Var\n```\nVars is a string\\[string] variables map.\n\n```go\nfunc (vs Vars) ToStringMap() (m map[string]string)\n```\nToStringMap converts Vars to a string map containing only the static variables\n\n","path":"github.com/Go-Task/task/internal/taskfile","name":"taskfile","synopsis":"","isRedistributable":true}
