project

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Name      string
	Version   string
	Type      DependencyType
	Workspace bool // true if dependency is another grove workspace
}

type DependencyType

type DependencyType string
const (
	DependencyTypeLibrary DependencyType = "library"
	DependencyTypeBinary  DependencyType = "binary"
)

type GoHandler

type GoHandler struct{}

func NewGoHandler

func NewGoHandler() *GoHandler

func (*GoHandler) GetBuildCommand

func (h *GoHandler) GetBuildCommand() string

Leverage Makefile contract

func (*GoHandler) GetTestCommand

func (h *GoHandler) GetTestCommand() string

func (*GoHandler) GetVerifyCommand

func (h *GoHandler) GetVerifyCommand() string

func (*GoHandler) GetVersion

func (h *GoHandler) GetVersion(workspacePath string) (string, error)

func (*GoHandler) HasProjectFile

func (h *GoHandler) HasProjectFile(workspacePath string) bool

func (*GoHandler) ParseDependencies

func (h *GoHandler) ParseDependencies(workspacePath string) ([]Dependency, error)

func (*GoHandler) SetVersion

func (h *GoHandler) SetVersion(workspacePath string, version string) error

func (*GoHandler) UpdateDependency

func (h *GoHandler) UpdateDependency(workspacePath string, dep Dependency) error

type MaturinHandler

type MaturinHandler struct{}

func NewMaturinHandler

func NewMaturinHandler() *MaturinHandler

func (*MaturinHandler) GetBuildCommand

func (h *MaturinHandler) GetBuildCommand() string

Leverage Makefile contract

func (*MaturinHandler) GetTestCommand

func (h *MaturinHandler) GetTestCommand() string

func (*MaturinHandler) GetVerifyCommand

func (h *MaturinHandler) GetVerifyCommand() string

func (*MaturinHandler) GetVersion

func (h *MaturinHandler) GetVersion(workspacePath string) (string, error)

func (*MaturinHandler) HasProjectFile

func (h *MaturinHandler) HasProjectFile(workspacePath string) bool

func (*MaturinHandler) ParseDependencies

func (h *MaturinHandler) ParseDependencies(workspacePath string) ([]Dependency, error)

func (*MaturinHandler) SetVersion

func (h *MaturinHandler) SetVersion(workspacePath string, version string) error

func (*MaturinHandler) UpdateDependency

func (h *MaturinHandler) UpdateDependency(workspacePath string, dep Dependency) error

type NodeHandler

type NodeHandler struct{}

func NewNodeHandler

func NewNodeHandler() *NodeHandler

func (*NodeHandler) GetBuildCommand

func (h *NodeHandler) GetBuildCommand() string

func (*NodeHandler) GetTestCommand

func (h *NodeHandler) GetTestCommand() string

func (*NodeHandler) GetVerifyCommand

func (h *NodeHandler) GetVerifyCommand() string

func (*NodeHandler) GetVersion

func (h *NodeHandler) GetVersion(workspacePath string) (string, error)

func (*NodeHandler) HasProjectFile

func (h *NodeHandler) HasProjectFile(workspacePath string) bool

func (*NodeHandler) ParseDependencies

func (h *NodeHandler) ParseDependencies(workspacePath string) ([]Dependency, error)

func (*NodeHandler) SetVersion

func (h *NodeHandler) SetVersion(workspacePath string, version string) error

func (*NodeHandler) UpdateDependency

func (h *NodeHandler) UpdateDependency(workspacePath string, dep Dependency) error

type ProjectHandler

type ProjectHandler interface {
	// Dependency management
	ParseDependencies(workspacePath string) ([]Dependency, error)
	UpdateDependency(workspacePath string, dep Dependency) error

	// Version management
	GetVersion(workspacePath string) (string, error)
	SetVersion(workspacePath string, version string) error

	// Build commands (leverage Makefile contract)
	GetBuildCommand() string
	GetTestCommand() string
	GetVerifyCommand() string

	// Project detection
	HasProjectFile(workspacePath string) bool
}

ProjectHandler defines the interface for language-specific operations

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry() *Registry

func (*Registry) Get

func (r *Registry) Get(projectType Type) (ProjectHandler, error)

func (*Registry) Register

func (r *Registry) Register(projectType Type, handler ProjectHandler)

type TemplateHandler

type TemplateHandler struct{}

func NewTemplateHandler

func NewTemplateHandler() *TemplateHandler

func (*TemplateHandler) GetBuildCommand

func (h *TemplateHandler) GetBuildCommand() string

Templates are tested, not built in the traditional sense.

func (*TemplateHandler) GetTestCommand

func (h *TemplateHandler) GetTestCommand() string

func (*TemplateHandler) GetVerifyCommand

func (h *TemplateHandler) GetVerifyCommand() string

func (*TemplateHandler) GetVersion

func (h *TemplateHandler) GetVersion(workspacePath string) (string, error)

func (*TemplateHandler) HasProjectFile

func (h *TemplateHandler) HasProjectFile(workspacePath string) bool

func (*TemplateHandler) ParseDependencies

func (h *TemplateHandler) ParseDependencies(workspacePath string) ([]Dependency, error)

func (*TemplateHandler) SetVersion

func (h *TemplateHandler) SetVersion(workspacePath string, version string) error

func (*TemplateHandler) UpdateDependency

func (h *TemplateHandler) UpdateDependency(workspacePath string, dep Dependency) error

type Type

type Type string
const (
	TypeGo       Type = "go"
	TypeMaturin  Type = "maturin"
	TypeNode     Type = "node"
	TypeTemplate Type = "template"
)

Jump to

Keyboard shortcuts

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