shared

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package shared provides shared context and caching for pre-commit checks

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

Context provides cached repository information

func NewContext

func NewContext() *Context

NewContext creates a new shared context for checks

func (*Context) GetRepoRoot

func (sc *Context) GetRepoRoot(ctx context.Context) (string, error)

GetRepoRoot returns the repository root, caching the result

Jump to

Keyboard shortcuts

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