verbcli

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VerbRepositoriesEnvVar = "CSS_VISUAL_DIFF_VERB_REPOSITORIES"
	RepositoryFlag         = "repository"
	VerbRepositoryFlag     = "verb-repository"

	LocalConfigFileName         = ".css-visual-diff.yml"
	LocalOverrideConfigFileName = ".css-visual-diff.override.yml"
)

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(bootstrap Bootstrap) (*cobra.Command, error)

func NewLazyCommand

func NewLazyCommand() *cobra.Command

Types

type Bootstrap

type Bootstrap struct {
	Repositories []Repository
}

func DiscoverBootstrap

func DiscoverBootstrap(args []string) (Bootstrap, []string, error)

type DiscoveredVerb

type DiscoveredVerb struct {
	Repository ScannedRepository
	Verb       *jsverbs.VerbSpec
}

func CollectDiscoveredVerbs

func CollectDiscoveredVerbs(repositories []ScannedRepository) ([]DiscoveredVerb, error)

type InvokerFactory

type InvokerFactory func(repo ScannedRepository, verb *jsverbs.VerbSpec) jsverbs.VerbInvoker

type Repository

type Repository struct {
	Name       string
	Source     string
	SourceRef  string
	RootDir    string
	EmbeddedFS fs.FS
	Embedded   bool
	EmbeddedAt string
}

type ScannedRepository

type ScannedRepository struct {
	Repository Repository
	Registry   *jsverbs.Registry
}

func ScanRepositories

func ScanRepositories(bootstrap Bootstrap) ([]ScannedRepository, error)

func (ScannedRepository) RuntimeOptions

func (r ScannedRepository) RuntimeOptions() []engine.Option

Jump to

Keyboard shortcuts

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