tools

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package tools is the central registry for every tool instance wick will mount. Downstream apps append to it via app.RegisterTool, and server.go walks All() at boot to validate, wire routes, and seed config rows.

To add a built-in tool (wick lab binary only):

  1. Create internal/tools/<name>/ with a Register(r tool.Router) func and, if the tool has runtime-editable config, a Config struct.
  2. Append one or more app.RegisterTool calls to RegisterBuiltins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() []tool.Module

All returns every registered tool instance in registration order.

func Register

func Register(m tool.Module)

Register appends a fully-resolved Module record to the registry. Called from app.RegisterTool / app.RegisterToolNoConfig; do not call directly from app code.

func RegisterBuiltins

func RegisterBuiltins()

RegisterBuiltins seeds wick's own in-house tools into the registry. Intended for the wick lab binary (cmd/lab) — downstream projects start with an empty registry and register only their own tools.

Types

This section is empty.

Directories

Path Synopsis
Package converttext is a stateless text-conversion tool.
Package converttext is a stateless text-conversion tool.
Package external wraps third-party links as tool.Module entries so they show up on the home grid and palette alongside in-app tools.
Package external wraps third-party links as tool.Module entries so they show up on the home grid and palette alongside in-app tools.

Jump to

Keyboard shortcuts

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