Documentation ¶
Index ¶
- func LoadTemplateCommand(path string) (*cmds.TemplateCommand, bool)
- type FileType
- type Prompto
- type Repository
- func (r *Repository) AddPrompto(path string) error
- func (r *Repository) GetGroups() []string
- func (r *Repository) GetPromptos() []Prompto
- func (r *Repository) GetPromptosByGroup(group string) []Prompto
- func (r *Repository) GroupPromptos() map[string][]Prompto
- func (r *Repository) LoadPromptos() error
- func (r *Repository) Refresh() error
- func (r *Repository) RemovePrompto(path string) error
- func (r *Repository) Watch(ctx context.Context, options ...watcher.Option) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadTemplateCommand ¶
func LoadTemplateCommand(path string) (*cmds.TemplateCommand, bool)
Types ¶
type Prompto ¶ added in v0.1.2
type Repository ¶ added in v0.1.2
func NewRepository ¶ added in v0.1.2
func NewRepository(path string) *Repository
func (*Repository) AddPrompto ¶ added in v0.1.4
func (r *Repository) AddPrompto(path string) error
func (*Repository) GetGroups ¶ added in v0.1.2
func (r *Repository) GetGroups() []string
func (*Repository) GetPromptos ¶ added in v0.1.4
func (r *Repository) GetPromptos() []Prompto
func (*Repository) GetPromptosByGroup ¶ added in v0.1.2
func (r *Repository) GetPromptosByGroup(group string) []Prompto
func (*Repository) GroupPromptos ¶ added in v0.1.2
func (r *Repository) GroupPromptos() map[string][]Prompto
func (*Repository) LoadPromptos ¶ added in v0.1.2
func (r *Repository) LoadPromptos() error
func (*Repository) Refresh ¶ added in v0.1.2
func (r *Repository) Refresh() error
func (*Repository) RemovePrompto ¶ added in v0.1.4
func (r *Repository) RemovePrompto(path string) error
Click to show internal directories.
Click to hide internal directories.