rtk

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT 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