Help us shape the future of Go! Take the 2026 Go Developer Survey

ruleimport

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package ruleimport copies validated Markdown mandates into a repository.

Index

Constants

This section is empty.

Variables

View Source
var ErrConflict = errors.New("rule import conflict")
View Source
var ErrStorage = errors.New("rule import storage failed")

Functions

This section is empty.

Types

type Result

type Result struct {
	Created     []string
	Overwritten []string
	Unchanged   []string
	Commit      string
}

func Import

func Import(ctx context.Context, repositoryRoot, source, prefix string, force bool) (Result, error)

Import reads SOURCE and installs its Markdown rules under the worktree rule root.

Jump to

Keyboard shortcuts

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