run_command

command
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Demonstrates Session.RunCommand: invoke one of opencode's slash commands (advertised via session/update's available_commands_update notification) as a prompt turn. RunCommand is sugar for sending the command as a leading-slash text block via Session.Prompt — opencode interprets text starting with "/" as a command invocation.

go run ./examples/run_command

Jump to

Keyboard shortcuts

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