upgrade

package
v0.38.9 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrameworkTemplate

type FrameworkTemplate struct {
	TemplateName string
	TargetPath   string
}

FrameworkTemplate represents a framework element template and its target path

func GetFrameworkTemplates

func GetFrameworkTemplates() []FrameworkTemplate

GetFrameworkTemplates returns the list of framework element templates These are the only files that get upgraded when running andurel upgrade

type GitAnalyzer

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

func NewGitAnalyzer

func NewGitAnalyzer(projectRoot string) *GitAnalyzer

func (*GitAnalyzer) GetFileFromInitialCommit

func (g *GitAnalyzer) GetFileFromInitialCommit(relPath string) ([]byte, error)

func (*GitAnalyzer) GetModifiedFiles

func (g *GitAnalyzer) GetModifiedFiles() (map[string]bool, error)

func (*GitAnalyzer) IsClean

func (g *GitAnalyzer) IsClean() (bool, error)

type TemplateGenerator

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

func NewTemplateGenerator

func NewTemplateGenerator(targetVersion string) *TemplateGenerator

func (*TemplateGenerator) RenderFrameworkTemplates

func (g *TemplateGenerator) RenderFrameworkTemplates(config layout.ScaffoldConfig) (map[string][]byte, error)

RenderFrameworkTemplates renders all framework element templates and returns a map of file paths to their rendered content

type UpgradeOptions

type UpgradeOptions struct {
	DryRun        bool
	Auto          bool
	TargetVersion string
}

type UpgradeReport

type UpgradeReport struct {
	FromVersion   string
	ToVersion     string
	FilesReplaced int
	ToolsUpdated  int
	ReplacedFiles []string
	UpdatedTools  []string
	Success       bool
	Error         error
}

type Upgrader

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

func NewUpgrader

func NewUpgrader(projectRoot string, opts UpgradeOptions) (*Upgrader, error)

func (*Upgrader) Execute

func (u *Upgrader) Execute() (*UpgradeReport, error)

Jump to

Keyboard shortcuts

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