model

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	Recipe  string
	Options map[string]string
	Names   []string // file/folder names
}

type Tasks

type Tasks struct {
	// file/folder names, 优先级比 Task 里的 Names 更高。
	Names    []string `yaml:"global-names"`
	AllTasks []Task   `yaml:"all-tasks"`
}

func (Tasks) ExecAll

func (all Tasks) ExecAll(realRun bool) error

ExecAll 当 realRun == true 时依次执行每个任务; 而当 realRun == false 时则只是依次检查每个任务,不会真的执行。

Jump to

Keyboard shortcuts

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