hook

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package hook provides a simple interface for running hook commands that may be defined in the asdfrc file

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(conf config.Config, hookName string, arguments []string) error

Run gets a hook command from config and runs it with the provided arguments. Output is sent to STDOUT and STDERR

func RunWithOutput

func RunWithOutput(config config.Config, hookName string, arguments []string, stdOut io.Writer, stdErr io.Writer) error

RunWithOutput gets a hook command from config and runs it with the provided arguments. Output is sent to the provided io.Writers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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