claude

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package claude provides the Claude Code command adapter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct{}

Adapter converts between canonical Command and Claude Code command format.

func (*Adapter) DefaultDir

func (a *Adapter) DefaultDir() string

DefaultDir returns the default directory name for Claude commands.

func (*Adapter) FileExtension

func (a *Adapter) FileExtension() string

FileExtension returns the file extension for Claude commands.

func (*Adapter) Marshal

func (a *Adapter) Marshal(cmd *core.Command) ([]byte, error)

Marshal converts canonical Command to Claude command Markdown bytes.

func (*Adapter) Name

func (a *Adapter) Name() string

Name returns the adapter identifier.

func (*Adapter) Parse

func (a *Adapter) Parse(data []byte) (*core.Command, error)

Parse converts Claude command Markdown bytes to canonical Command.

func (*Adapter) ReadFile

func (a *Adapter) ReadFile(path string) (*core.Command, error)

ReadFile reads a Claude command Markdown file and returns canonical Command.

func (*Adapter) WriteFile

func (a *Adapter) WriteFile(cmd *core.Command, path string) error

WriteFile writes canonical Command to a Claude command Markdown file.

Jump to

Keyboard shortcuts

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