tools

package
v1.4.438 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPatternsGitRepoFolder = "data/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
Package spotify provides Spotify Web API integration for podcast metadata retrieval.
Package spotify provides Spotify Web API integration for podcast metadata retrieval.
Package youtube provides YouTube video transcript and comment extraction functionality.
Package youtube provides YouTube video transcript and comment extraction functionality.

Jump to

Keyboard shortcuts

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