refsubmit

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ID = "ref-submit-annotate"

ID is the feature plugin id for YAML registration.

Variables

This section is empty.

Functions

func NewSubmitHook

func NewSubmitHook(cfg Config) sdk.SubmitHook

NewSubmitHook returns a submit hook that records a JSON marker extension on the canonical call.

Types

type Config

type Config struct {
	Order  *int   `yaml:"order"`
	Marker string `yaml:"marker"`
}

Config is decoded from the feature plugin YAML block.

func DecodeConfig

func DecodeConfig(n yaml.Node) (Config, error)

DecodeConfig parses YAML for ref-submit-annotate.

Jump to

Keyboard shortcuts

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