Documentation
¶
Overview ¶
Package starter provides embedded starter commands that ship with staghorn.
Package starter provides embedded starter configs that ship with staghorn.
Package starter provides embedded starter skills that ship with staghorn.
Package starter provides embedded starter templates that ship with staghorn.
Index ¶
- func BootstrapCommands(targetDir string) (int, error)
- func BootstrapCommandsSelective(targetDir string, names []string) (int, []string, error)
- func BootstrapCommandsWithSkip(targetDir string, skip []string) (int, []string, error)
- func BootstrapEvals(targetDir string) (int, []string, error)
- func BootstrapEvalsSelective(targetDir string, names []string) (int, []string, error)
- func BootstrapLanguages(targetDir string) (int, error)
- func BootstrapLanguagesSelective(targetDir string, names []string) (int, []string, error)
- func BootstrapRules(targetDir string) (int, error)
- func BootstrapRulesWithSkip(targetDir string, skip []string) (int, []string, error)
- func BootstrapSkills(targetDir string) (int, error)
- func BootstrapSkillsSelective(targetDir string, names []string) (int, []string, error)
- func BootstrapSkillsWithSkip(targetDir string, skip []string) (int, []string, error)
- func BootstrapTemplates(targetDir string) (int, error)
- func CommandNames() []string
- func EvalNames() []string
- func GetCommand(name string) ([]byte, error)
- func GetEval(name string) ([]byte, error)
- func GetLanguageConfig(langID string) ([]byte, error)
- func GetRule(relPath string) ([]byte, error)
- func GetSkill(name string) ([]byte, error)
- func GetTemplate(name string) ([]byte, error)
- func LanguageNames() []string
- func ListCommands() ([]fs.DirEntry, error)
- func ListRules() ([]fs.DirEntry, error)
- func ListSkills() ([]fs.DirEntry, error)
- func LoadStarterCommands() ([]*commands.Command, error)
- func LoadStarterEvals() ([]*eval.Eval, error)
- func LoadStarterRules() ([]*rules.Rule, error)
- func LoadStarterSkills() ([]*skills.Skill, error)
- func RuleNames() []string
- func SkillNames() []string
- func TemplateNames() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapCommands ¶
BootstrapCommands copies starter commands to the target directory. It skips files that already exist. Returns the number of commands copied.
func BootstrapCommandsSelective ¶
BootstrapCommandsSelective copies only the specified starter commands to the target directory. It skips files that already exist. Returns the count and names of installed commands.
func BootstrapCommandsWithSkip ¶
BootstrapCommandsWithSkip copies starter commands to the target directory, skipping commands in the skip list. Returns the count and names of installed commands.
func BootstrapEvals ¶ added in v0.4.0
BootstrapEvals copies starter evals to the target directory. It skips files that already exist. Returns the number of files copied and their names.
func BootstrapEvalsSelective ¶ added in v0.4.0
BootstrapEvalsSelective copies only the specified starter evals to the target directory.
func BootstrapLanguages ¶
BootstrapLanguages copies starter language configs to the target directory. It skips files that already exist. Returns the number of files copied.
func BootstrapLanguagesSelective ¶
BootstrapLanguagesSelective copies only the specified starter language configs to the target directory. It skips files that already exist. Returns the count and names of installed configs.
func BootstrapRules ¶ added in v0.8.0
BootstrapRules copies starter rules to the target directory. It skips files that already exist. Returns the number of rules copied.
func BootstrapRulesWithSkip ¶ added in v0.8.0
BootstrapRulesWithSkip copies starter rules to the target directory, skipping rules in the skip list. Returns the count and names of installed rules.
func BootstrapSkills ¶ added in v0.8.0
BootstrapSkills copies starter skills to the target directory. It skips skills that already exist. Returns the number of skills copied.
func BootstrapSkillsSelective ¶ added in v0.8.0
BootstrapSkillsSelective copies only the specified starter skills to the target directory. It skips skills that already exist. Returns the count and names of installed skills.
func BootstrapSkillsWithSkip ¶ added in v0.8.0
BootstrapSkillsWithSkip copies starter skills to the target directory, skipping skills in the skip list. Returns the count and names of installed skills.
func BootstrapTemplates ¶
BootstrapTemplates copies starter templates to the target directory. It skips files that already exist. Returns the number of templates copied.
func CommandNames ¶
func CommandNames() []string
CommandNames returns the list of available starter command names.
func EvalNames ¶ added in v0.4.0
func EvalNames() []string
EvalNames returns the list of available starter eval names.
func GetCommand ¶
GetCommand returns the content of a starter command by name.
func GetLanguageConfig ¶
GetLanguageConfig returns the content of a starter language config by ID.
func GetTemplate ¶
GetTemplate returns the content of a starter template by name.
func LanguageNames ¶
func LanguageNames() []string
LanguageNames returns the list of available starter language config names.
func ListCommands ¶
ListCommands returns all embedded command files.
func ListSkills ¶ added in v0.8.0
ListSkills returns all embedded skill directories.
func LoadStarterCommands ¶
LoadStarterCommands loads and parses all embedded starter commands.
func LoadStarterEvals ¶ added in v0.4.0
LoadStarterEvals loads and parses all embedded starter evals.
func LoadStarterRules ¶ added in v0.8.0
LoadStarterRules loads and parses all embedded starter rules.
func LoadStarterSkills ¶ added in v0.8.0
LoadStarterSkills loads and parses all embedded starter skills.
func RuleNames ¶ added in v0.8.0
func RuleNames() []string
RuleNames returns the list of available starter rule names (relative paths).
func SkillNames ¶ added in v0.8.0
func SkillNames() []string
SkillNames returns the list of available starter skill names.
func TemplateNames ¶
func TemplateNames() []string
TemplateNames returns the list of available starter template names.
Types ¶
This section is empty.