batch

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(path string, f *File) error

Save writes a batch File to path in YAML format.

Types

type BatchJob

type BatchJob struct {
	URI    string `yaml:"uri"`
	Dest   string `yaml:"dest"`
	SHA256 string `yaml:"sha256"`
	Type   string `yaml:"type"`
	Place  bool   `yaml:"place"`
	Mode   string `yaml:"mode"` // symlink|hardlink|copy
}

type File

type File struct {
	Version int        `yaml:"version"`
	Jobs    []BatchJob `yaml:"jobs"`
}

func Load

func Load(path string) (*File, error)

Jump to

Keyboard shortcuts

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