depbump

package module
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 11 Imported by: 0

README

depbump

Check and upgrade outdated dependencies in Go modules, with version bumping.

install

go install github.com/go-mate/depbump/cmd/depbump-directs@latest

command

cd project-path && depbump-directs

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseModuleFile

func ParseModuleFile(projectPath string) (*modfile.File, error)

func UpdateModule

func UpdateModule(projectPath string, modulePath string) error

Types

type ModInfo

type ModInfo struct {
	Module  *Module    `json:"Module"`
	Go      string     `json:"Go"`
	Require []*Require `json:"Require"`
}

func GetModInfo

func GetModInfo(projectPath string) (*ModInfo, error)

type Module

type Module struct {
	Path string `json:"Path"`
}

type Require

type Require struct {
	Path     string `json:"Path"`
	Version  string `json:"Version"`
	Indirect bool   `json:"Indirect"`
}

type UpgradeInfo

type UpgradeInfo struct {
	Module     string `json:"module"`
	OldVersion string `json:"old_version"`
	NewVersion string `json:"new_version"`
}

func MatchUpgrade

func MatchUpgrade(outputLine string) (*UpgradeInfo, bool)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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