starter

package
v0.2.0 Latest Latest
Warning

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

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

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapCommands

func BootstrapCommands(targetDir string) (int, error)

BootstrapCommands copies starter commands to the target directory. It skips files that already exist. Returns the number of commands copied.

func BootstrapCommandsSelective

func BootstrapCommandsSelective(targetDir string, names []string) (int, []string, error)

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

func BootstrapCommandsWithSkip(targetDir string, skip []string) (int, []string, error)

BootstrapCommandsWithSkip copies starter commands to the target directory, skipping commands in the skip list. Returns the count and names of installed commands.

func BootstrapLanguages

func BootstrapLanguages(targetDir string) (int, error)

BootstrapLanguages copies starter language configs to the target directory. It skips files that already exist. Returns the number of files copied.

func BootstrapLanguagesSelective

func BootstrapLanguagesSelective(targetDir string, names []string) (int, []string, error)

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

func BootstrapTemplates(targetDir string) (int, error)

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 GetCommand

func GetCommand(name string) ([]byte, error)

GetCommand returns the content of a starter command by name.

func GetLanguageConfig

func GetLanguageConfig(langID string) ([]byte, error)

GetLanguageConfig returns the content of a starter language config by ID.

func GetTemplate

func GetTemplate(name string) ([]byte, error)

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

func ListCommands() ([]fs.DirEntry, error)

ListCommands returns all embedded command files.

func LoadStarterCommands

func LoadStarterCommands() ([]*commands.Command, error)

LoadStarterCommands loads and parses all embedded starter commands.

func TemplateNames

func TemplateNames() []string

TemplateNames returns the list of available starter template names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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