mappingcli

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(provider *mappings.Provider, stdout io.Writer) int

List prints provider entries in a tab-aligned table, in the deterministic order Entries() returns (org A→Z, then repo A→Z; wildcards render as "*"). No network calls.

Types

type MappingsValidator

type MappingsValidator interface {
	Validate(ctx context.Context, target string, force bool, stdout, stderr io.Writer) int
}

MappingsValidator is the validate use case. main_test.go swaps it for a fake that satisfies this interface.

func NewMappingsValidator

func NewMappingsValidator(
	provider *mappings.Provider,
	checker validate.RepoValidator,
	lister validate.OrgRepoLister,
	lockPath string,
	clock func() time.Time,
) MappingsValidator

NewMappingsValidator builds the validate use case from its dependencies. Callers (cmd/notifycat-mapping, tests) construct provider/checker/lister/ clock themselves and pass them in — there is no production-wiring façade in this package. `lister` may be nil when no GitHub credentials exist.

Jump to

Keyboard shortcuts

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