Documentation
¶
Index ¶
- type Dependency
- type DependencyType
- type GoHandler
- func (h *GoHandler) GetBuildCommand() string
- func (h *GoHandler) GetTestCommand() string
- func (h *GoHandler) GetVerifyCommand() string
- func (h *GoHandler) GetVersion(workspacePath string) (string, error)
- func (h *GoHandler) HasProjectFile(workspacePath string) bool
- func (h *GoHandler) ParseDependencies(workspacePath string) ([]Dependency, error)
- func (h *GoHandler) SetVersion(workspacePath string, version string) error
- func (h *GoHandler) UpdateDependency(workspacePath string, dep Dependency) error
- type MaturinHandler
- func (h *MaturinHandler) GetBuildCommand() string
- func (h *MaturinHandler) GetTestCommand() string
- func (h *MaturinHandler) GetVerifyCommand() string
- func (h *MaturinHandler) GetVersion(workspacePath string) (string, error)
- func (h *MaturinHandler) HasProjectFile(workspacePath string) bool
- func (h *MaturinHandler) ParseDependencies(workspacePath string) ([]Dependency, error)
- func (h *MaturinHandler) SetVersion(workspacePath string, version string) error
- func (h *MaturinHandler) UpdateDependency(workspacePath string, dep Dependency) error
- type NodeHandler
- func (h *NodeHandler) GetBuildCommand() string
- func (h *NodeHandler) GetTestCommand() string
- func (h *NodeHandler) GetVerifyCommand() string
- func (h *NodeHandler) GetVersion(workspacePath string) (string, error)
- func (h *NodeHandler) HasProjectFile(workspacePath string) bool
- func (h *NodeHandler) ParseDependencies(workspacePath string) ([]Dependency, error)
- func (h *NodeHandler) SetVersion(workspacePath string, version string) error
- func (h *NodeHandler) UpdateDependency(workspacePath string, dep Dependency) error
- type ProjectHandler
- type Registry
- type TemplateHandler
- func (h *TemplateHandler) GetBuildCommand() string
- func (h *TemplateHandler) GetTestCommand() string
- func (h *TemplateHandler) GetVerifyCommand() string
- func (h *TemplateHandler) GetVersion(workspacePath string) (string, error)
- func (h *TemplateHandler) HasProjectFile(workspacePath string) bool
- func (h *TemplateHandler) ParseDependencies(workspacePath string) ([]Dependency, error)
- func (h *TemplateHandler) SetVersion(workspacePath string, version string) error
- func (h *TemplateHandler) UpdateDependency(workspacePath string, dep Dependency) error
- type Type
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 ¶
Leverage Makefile contract
func (*GoHandler) GetTestCommand ¶
func (*GoHandler) GetVerifyCommand ¶
func (*GoHandler) HasProjectFile ¶
func (*GoHandler) ParseDependencies ¶
func (h *GoHandler) ParseDependencies(workspacePath string) ([]Dependency, error)
func (*GoHandler) SetVersion ¶
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) 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
Click to show internal directories.
Click to hide internal directories.