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

rtk

package
v0.63.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hook

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

Hook rewrites bash commands via the rtk binary.

func NewHook

func NewHook(toolsBinDir string) *Hook

NewHook creates a Hook that looks for the rtk binary in the given directory.

func (*Hook) Name

func (h *Hook) Name() string

func (*Hook) OnPreToolCall

func (h *Hook) OnPreToolCall(_ context.Context, hctx *hooks.PreToolCallContext) (hooks.PreToolCallResult, error)

func (*Hook) Priority

func (h *Hook) Priority() int

Jump to

Keyboard shortcuts

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