tasks

package
v0.0.0-...-5372f9b Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Copyright © 2023 Codoworks Author: Dexter Codo Contact: dexter.codo@gmail.com

Copyright © 2023 Codoworks Author: Dexter Codo Contact: dexter.codo@gmail.com

Index

Constants

This section is empty.

Variables

View Source
var Tasks = &AppTaskList{}

Functions

This section is empty.

Types

type AppTaskList

type AppTaskList struct {
	// contains filtered or unexported fields
}

func (*AppTaskList) AddTask

func (atl *AppTaskList) AddTask(task *Task)

func (*AppTaskList) GetTask

func (atl *AppTaskList) GetTask(name string) *Task

func (*AppTaskList) GetTasks

func (atl *AppTaskList) GetTasks() []*Task

func (*AppTaskList) Init

func (atl *AppTaskList) Init()

func (*AppTaskList) PrintTasks

func (atl *AppTaskList) PrintTasks()

type Task

type Task struct {
	Name         string
	Description  string
	RequiredArgs []string
	Run          func(env *TaskEnv, args map[string]string) error
}

func (*Task) Execute

func (t *Task) Execute(args map[string]string) error

type TaskEnv

type TaskEnv struct {
	Env *config.SEnv
}

func (*TaskEnv) SetEnv

func (te *TaskEnv) SetEnv(env *config.SEnv)

Jump to

Keyboard shortcuts

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