cmd

package
v0.0.0-...-471f045 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func Default

func Default() *Command

func NewCommand

func NewCommand(
	importsReplacer ImportsReplacer,
	modReplacer ModReplacer,
) *Command

func (*Command) Run

func (c *Command) Run(ctx context.Context, params Params) error

type ImportsReplacer

type ImportsReplacer func(goFile *file.File, oldModule, newModule string) error

type ModReplacer

type ModReplacer func(modFile *gomodfinder.ModFile, newModule string, replaceNestedModules bool) error

type Params

type Params struct {
	NewModule string

	ProjectDir string

	ReplaceNestedModules bool // replace requirements to nested modules
}

Jump to

Keyboard shortcuts

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