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 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 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 GetTemplate(name string) ([]byte, error)
- func LanguageNames() []string
- func ListCommands() ([]fs.DirEntry, error)
- func LoadStarterCommands() ([]*commands.Command, error)
- func LoadStarterEvals() ([]*eval.Eval, error)
- 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 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 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 TemplateNames ¶
func TemplateNames() []string
TemplateNames returns the list of available starter template names.
Types ¶
This section is empty.