scaffold

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddModule

func AddModule(ctx context.Context, opts ModuleOptions, target string) (string, error)

func EnsureConfig

func EnsureConfig(opts ConfigOptions) (string, error)

func ImportPathForGetTarget

func ImportPathForGetTarget(target string) string

func PackageNameForImportPath

func PackageNameForImportPath(importPath string) string

func UpdateModules

func UpdateModules(ctx context.Context, opts ModuleOptions, targets []string) (string, error)

Types

type ConfigOptions

type ConfigOptions struct {
	ConfigDir      string
	PlumsVersion   string
	PlumsModuleDir string
}

type ListedPlugin

type ListedPlugin struct {
	Name       string
	ImportPath string
	Dir        string
	Local      bool
	Wired      bool
}

func ListPlugins

func ListPlugins(opts ConfigOptions) ([]ListedPlugin, error)

type ModuleOptions

type ModuleOptions struct {
	ConfigDir      string
	PlumsVersion   string
	PlumsModuleDir string
	Stdout         io.Writer
	Stderr         io.Writer
}

type PluginOptions

type PluginOptions struct {
	ConfigDir      string
	Name           string
	PlumsVersion   string
	PlumsModuleDir string
}

type PluginResult

type PluginResult struct {
	Dir         string
	ImportPath  string
	PackageName string
}

func NewPlugin

func NewPlugin(opts PluginOptions) (PluginResult, error)

type WireOptions

type WireOptions struct {
	ConfigDir   string
	ImportPath  string
	PackageName string
}

type WireResult

type WireResult struct {
	ConfigPath string
	Changed    bool
	Expression string
}

func WirePlugin

func WirePlugin(opts WireOptions) (WireResult, error)

Jump to

Keyboard shortcuts

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