command

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package command registers piglet's built-in slash commands via the extension API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallOfficialExtensions added in v0.13.0

func InstallOfficialExtensions(w io.Writer, settings config.Settings) error

func RegisterBuiltins

func RegisterBuiltins(app *ext.App, shortcuts map[string]string, version string)

RegisterBuiltins registers all built-in slash commands. Keyboard shortcuts for session (ctrl+s) and model (ctrl+p) live in extensions/sessioncmd and are registered there. All commands operate exclusively through the ext.App SDK.

The shortcuts parameter is reserved for future use and is currently ignored.

Types

This section is empty.

Jump to

Keyboard shortcuts

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