hooks

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package hooks bundles the compatibility shell wrappers that packaged Traceary host integrations still ship alongside the Go hook runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScriptAsset

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

ScriptAsset describes one packaged hook script.

func Assets

func Assets() ([]ScriptAsset, error)

Assets returns the canonical hook scripts bundled with Traceary.

func ScriptAssetOf added in v0.4.0

func ScriptAssetOf(name string, content string) ScriptAsset

ScriptAssetOf creates a ScriptAsset with the given name and content.

func (ScriptAsset) Content

func (a ScriptAsset) Content() string

Content returns the raw content of the hook script.

func (ScriptAsset) Name

func (a ScriptAsset) Name() string

Name returns the file name of the hook script.

Jump to

Keyboard shortcuts

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