task

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustParseTemplate

func MustParseTemplate(fsys fs.FS, path string) *template.Template

Types

type Copy

type Copy struct {
	Name string
	Src  string
	Dest string
	Mode fs.FileMode
	Vars core.Vars
	core.Notifier
}

func (*Copy) Desc

func (c *Copy) Desc() string

func (*Copy) DoTransfer

func (c *Copy) DoTransfer(vars core.Vars) (stats string, err error)

func (*Copy) Exec

func (c *Copy) Exec(vars core.Vars) (changed bool, diff string, notify []core.Handler, err error)

func (*Copy) RemotePrep

func (c *Copy) RemotePrep(vars core.Vars) (stats string, err error)

func (*Copy) View

func (c *Copy) View(vars core.Vars) (changed bool, diff string, notify []core.Handler, err error)

type Template

type Template struct {
	Name     string
	Template *template.Template
	Dest     string
	Mode     fs.FileMode
	Vars     core.Vars
	core.Notifier
}

func (*Template) Desc

func (t *Template) Desc() string

func (*Template) Exec

func (t *Template) Exec(vars core.Vars) (changed bool, diff string, notify []core.Handler,
	err error)

func (*Template) View

func (t *Template) View(vars core.Vars) (changed bool, diff string, notify []core.Handler,
	err error)

Jump to

Keyboard shortcuts

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