{"modulePath":"github.com/system-transparency/task","version":"v2.2.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package task\n\n## Constants\n\n```go\nconst (\n\t// MaximumTaskCall is the max number of times a task can be called.\n\t// This exists to prevent infinite loops on cyclic dependencies\n\tMaximumTaskCall = 100\n)\n```\n\n## Variables\n\n```go\nvar (\n\t// ErrTaskfileAlreadyExists is returned on creating a Taskfile if one already exists\n\tErrTaskfileAlreadyExists = errors.New(\"task: A Taskfile already exists\")\n)\n```\n\n## Functions\n\n```go\nfunc InitTaskfile(w io.Writer, dir string) error\n```\nInitTaskfile Taskfile creates a new Taskfile\n\n## Types\n\n```go\ntype Executor struct {\n\tTaskfile *taskfile.Taskfile\n\tDir      string\n\tForce    bool\n\tWatch    bool\n\tVerbose  bool\n\tSilent   bool\n\tDry      bool\n\n\tContext context.Context\n\n\tStdin  io.Reader\n\tStdout io.Writer\n\tStderr io.Writer\n\n\tLogger   *logger.Logger\n\tCompiler compiler.Compiler\n\tOutput   output.Output\n\t// contains filtered or unexported fields\n}\n```\nExecutor executes a Taskfile\n\n```go\nfunc (e *Executor) CompiledTask(call taskfile.Call) (*taskfile.Task, error)\n```\nCompiledTask returns a copy of a task, but replacing variables in almost all properties using the Go template package.\n\n```go\nfunc (e *Executor) PrintTasksHelp()\n```\nPrintTasksHelp prints help os tasks that have a description\n\n```go\nfunc (e *Executor) Run(calls ...taskfile.Call) error\n```\nRun runs Task\n\n```go\nfunc (e *Executor) RunTask(ctx context.Context, call taskfile.Call) error\n```\nRunTask runs a task by its name\n\n```go\nfunc (e *Executor) Setup() error\n```\nSetup setups Executor's internal state\n\n```go\nfunc (e *Executor) Status(calls ...taskfile.Call) error\n```\nStatus returns an error if any the of given tasks is not up-to-date\n\n```go\ntype MaximumTaskCallExceededError struct {\n\t// contains filtered or unexported fields\n}\n```\nMaximumTaskCallExceededError is returned when a task is called too many times. In this case you probably have a cyclic dependendy or infinite loop\n\n```go\nfunc (e *MaximumTaskCallExceededError) Error() string\n```\n\n","path":"github.com/system-transparency/task","name":"task","synopsis":"","isRedistributable":true}
