claude

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(w io.Writer, fw FileWriter, personal bool) error

Install writes the Claude Code skill and agent files to disk. When personal is true, files are written under ~/.claude/ instead of .claude/.

Types

type FileWriter

type FileWriter interface {
	MkdirAll(path string, perm os.FileMode) error
	WriteFile(name string, data []byte, perm os.FileMode) error
	ReadFile(name string) ([]byte, error)
}

FileWriter abstracts filesystem operations for testability.

type OSFileWriter

type OSFileWriter struct{}

OSFileWriter implements FileWriter using the os package.

func (OSFileWriter) MkdirAll

func (OSFileWriter) MkdirAll(path string, perm os.FileMode) error

func (OSFileWriter) ReadFile

func (OSFileWriter) ReadFile(name string) ([]byte, error)

func (OSFileWriter) WriteFile

func (OSFileWriter) WriteFile(name string, data []byte, perm os.FileMode) error

Jump to

Keyboard shortcuts

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