check

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package check implements the `precommit check` command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCheck

func NewCmdCheck(f *cmdutil.Factory, runF func(*CheckOptions) error) *cobra.Command

NewCmdCheck creates the `precommit check` command.

Types

type CheckOptions

type CheckOptions struct {
	IO      *iostreams.IOStreams
	GitRoot func() (string, error)
	Runner  precommit.CommandRunner

	Run       bool
	NoInstall bool
	Yes       bool
	JSON      bool
}

CheckOptions holds dependencies and flags for the check command.

Source Files

  • check.go

Jump to

Keyboard shortcuts

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