tools

package
v1.4.93 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultPatternsGitRepoFolder = "patterns"
View Source
const DefaultPatternsGitRepoUrl = "https://github.com/danielmiessler/fabric.git"

Variables

This section is empty.

Functions

This section is empty.

Types

type Defaults

type Defaults struct {
	*plugins.PluginBase

	Vendor             *plugins.Setting
	Model              *plugins.SetupQuestion
	ModelContextLength *plugins.SetupQuestion
	GetVendorsModels   func() (*ai.VendorsModels, error)
}

func NeeDefaults

func NeeDefaults(getVendorsModels func() (*ai.VendorsModels, error)) (ret *Defaults)

func (*Defaults) Setup

func (o *Defaults) Setup() (err error)

type PatternsLoader

type PatternsLoader struct {
	*plugins.PluginBase
	Patterns *fsdb.PatternsEntity

	DefaultGitRepoUrl *plugins.SetupQuestion
	DefaultFolder     *plugins.SetupQuestion
	// contains filtered or unexported fields
}

func NewPatternsLoader

func NewPatternsLoader(patterns *fsdb.PatternsEntity) (ret *PatternsLoader)

func (*PatternsLoader) IsConfigured

func (o *PatternsLoader) IsConfigured() (ret bool)

func (*PatternsLoader) PersistPatterns

func (o *PatternsLoader) PersistPatterns() (err error)

PersistPatterns copies custom patterns to the updated patterns directory

func (*PatternsLoader) PopulateDB

func (o *PatternsLoader) PopulateDB() (err error)

PopulateDB downloads patterns from the internet and populates the patterns folder

func (*PatternsLoader) Setup

func (o *PatternsLoader) Setup() (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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