 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- Variables
- func InitTaskfile(w io.Writer, dir string) error
- type Executor
- func (e *Executor) CompiledTask(call taskfile.Call) (*taskfile.Task, error)
- func (e *Executor) PrintTasksHelp()
- func (e *Executor) Run(calls ...taskfile.Call) error
- func (e *Executor) RunTask(ctx context.Context, call taskfile.Call) error
- func (e *Executor) Setup() error
- func (e *Executor) Status(calls ...taskfile.Call) error
 
- type MaximumTaskCallExceededError
Constants ¶
      View Source
      
  
const ( // MaximumTaskCall is the max number of times a task can be called. // This exists to prevent infinite loops on cyclic dependencies MaximumTaskCall = 100 )
Variables ¶
      View Source
      
  
var ( // ErrTaskfileAlreadyExists is returned on creating a Taskfile if one already exists ErrTaskfileAlreadyExists = errors.New("task: A Taskfile already exists") )
Functions ¶
Types ¶
type Executor ¶
type Executor struct {
	Taskfile *taskfile.Taskfile
	Dir      string
	Force    bool
	Watch    bool
	Verbose  bool
	Silent   bool
	Dry      bool
	Context context.Context
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
	Logger   *logger.Logger
	Compiler compiler.Compiler
	Output   output.Output
	// contains filtered or unexported fields
}
    Executor executes a Taskfile
func (*Executor) CompiledTask ¶
CompiledTask returns a copy of a task, but replacing variables in almost all properties using the Go template package.
func (*Executor) PrintTasksHelp ¶
func (e *Executor) PrintTasksHelp()
PrintTasksHelp prints help os tasks that have a description
type MaximumTaskCallExceededError ¶
type MaximumTaskCallExceededError struct {
	// contains filtered or unexported fields
}
    MaximumTaskCallExceededError is returned when a task is called too many times. In this case you probably have a cyclic dependendy or infinite loop
func (*MaximumTaskCallExceededError) Error ¶
func (e *MaximumTaskCallExceededError) Error() string
 Click to show internal directories. 
   Click to hide internal directories.