locked

package
v0.0.0-...-8faf709 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() error

Load looks for Lockfile in the current and parent directories and finally $XDG_CONFIG_HOME. If the file exists (and is authorized), it is loaded and merged into FIXME

Types

type T

type T struct {
	At    string  `hcl:"at,optional"`
	Track []Track `hcl:"track,block"`
}

T is the root of a Lockfile

type Track

type Track struct {
	Track    string     `hcl:"track,label"`
	Use      string     `hcl:"use"`
	Tracking []Tracking `hcl:"tracking,block"`
}

Track defines a rewriting rule

type Tracking

type Tracking struct {
	Tracked string `hcl:"tracked,label"`
	At      string `hcl:"at"`
	Gives   string `hcl:"gives"`
}

Tracking represents the effect of a rule

Jump to

Keyboard shortcuts

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