deps

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cmd = &cobra.Command{
		Use:                "deps",
		Short:              "dependency/go.mod related tasks",
		FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
	}
	Args = GeneralArguments{
		Modules: []string{},
	}
)
View Source
var (
	DropReplaceCmd = &cobra.Command{
		Use:                "drop-replace",
		Short:              "drop the replace directive for a given module and update go.sum",
		FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
		RunE:               RunDropReplace,
	}
)
View Source
var (
	UpdateDepCmd = &cobra.Command{
		Use:                "update",
		Short:              "Update module dependencies with given branches and update go.sum",
		FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
		RunE:               RunUpdateDep,
	}
)

Functions

func RunDropReplace

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

func RunUpdateDep

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

Types

type GeneralArguments

type GeneralArguments struct {
	Modules    []string `flag:"modules,m" desc:"Comma delimited list of <module_path>[@branch]"`
	GitMarkTag string   `flag:"mark" desc:"Local git tag to mark the changes. Scripts can go back to the result of this step by using the same tag"`
}

Jump to

Keyboard shortcuts

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