precommit

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseImage

func BaseImage(img string) daggers.Option[config]

BaseImage sets the base image for the precommit container.

func CustomizeContainer

func CustomizeContainer(customizers ...containers.ContainerCustomizerFn) daggers.Option[config]

CustomizeContainer adds a customizer function to the precommit container.

func Precommit

func Precommit(ctx context.Context) error

Precommit runs all the precommit checks. Run `mage help:precommit` for information on available options.

func PrecommitWithOptions

func PrecommitWithOptions(ctx context.Context, opts ...daggers.Option[config]) error

PrecommitWithOptions runs all the precommit checks with Dagger options.

func Run

func Run(ctx context.Context, runtime *daggers.Runtime, opts ...daggers.Option[config]) (string, error)

Run runs the precommit checks.

func WithEnv

func WithEnv(envMap map[string]string) daggers.Option[config]

WithEnv sets the environment variables to pass to go.

Types

This section is empty.

Jump to

Keyboard shortcuts

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