tasker

package
v0.0.0-...-d39b1a8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskClient

type TaskClient interface {
	// Task executes a specific task defined in the Taskfile located in the project directory.
	//
	// on success, it sends a success message with the taskName, otherwise it sends an error message.
	Task(projectPath, taskFile, taskName string, messager eventer.Messager)

	// List lists all available tasks defined in the Taskfile located in the project directory.
	List(projectPath, taskFile string, messager eventer.Messager)
}

func NewTaskClient

func NewTaskClient(basePath string) TaskClient

NewTaskClient creates a new instance of TaskClient with the specified base path.

The base path is used to determine the location of the project directory with the Taskfile. TaskFiles always reside in the project directory, so the base path should point to the root of the project.

type TaskItem

type TaskItem struct {
	Name    string `json:"name"`
	Desc    string `json:"desc"`
	Summary string `json:"summary,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL