dev

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AddReplaceCmd = &cobra.Command{
		Use:                "deps-replace",
		Short:              "add the replace directive for a given module pattern and replace it with local path. Default to replace all local module",
		FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
		RunE:               RunAddReplace,
	}
	AddReplaceArgs = AddReplaceArguments{
		Modules:     []string{"**"},
		SearchPaths: []string{"../"},
	}
)
View Source
var (
	Cmd = &cobra.Command{
		Use:                "dev",
		Short:              "helper utilities for developers",
		FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
	}
)

Functions

func RunAddReplace

func RunAddReplace(cmd *cobra.Command, _ []string) error

Types

type AddReplaceArguments

type AddReplaceArguments struct {
	Modules     []string `flag:"modules,m" desc:"Comma delimited list of module pattern. e.g. github.com/<organization>/**"`
	SearchPaths []string `flag:"paths,p" desc:"Comma delimited list of relative paths for searching local replacement"`
}

Jump to

Keyboard shortcuts

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