require

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Env

func Env(l log.Logger, v config.RequireEnv, rules ...EnvRule) fend.Fend

func EnvExists

func EnvExists(l log.Logger, v config.RequireEnv) rule.Rule

func Envs

func Envs(l log.Logger, v []config.RequireEnv) []fend.Fend

func First

func First(l log.Logger, fends ...any) error

func GitUser

func GitUser(ctx context.Context, l log.Logger, rules ...GitRule) fend.Fend

func GitUserName

func GitUserName(ctx context.Context, l log.Logger) rule.Rule

func Package

func Package(ctx context.Context, l log.Logger, v config.RequirePackage, rules ...PackageRule) fend.Fend

func PackageExists

func PackageExists(ctx context.Context, l log.Logger, v config.RequirePackage) rule.Rule

func PackageVersion

func PackageVersion(ctx context.Context, l log.Logger, v config.RequirePackage) rule.Rule

func Packages

func Packages(ctx context.Context, l log.Logger, v []config.RequirePackage) []fend.Fend

func Script

func Script(ctx context.Context, l log.Logger, v config.RequireScript, rules ...ScriptRule) fend.Fend

func ScriptStatus

func ScriptStatus(ctx context.Context, l log.Logger, v config.RequireScript) rule.Rule

func Scripts

func Scripts(ctx context.Context, l log.Logger, v []config.RequireScript) []fend.Fend

Types

type EnvRule

type EnvRule func(l log.Logger, v config.RequireEnv) rule.Rule

type GitRule

type GitRule func(ctx context.Context, l log.Logger) rule.Rule

func GitUserEmail

func GitUserEmail(pattern string) GitRule

type PackageRule

type PackageRule func(ctx context.Context, l log.Logger, v config.RequirePackage) rule.Rule

type ScriptRule

type ScriptRule func(ctx context.Context, l log.Logger, v config.RequireScript) rule.Rule

Jump to

Keyboard shortcuts

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