cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoVersion

func GoVersion(dir string) string

GoVersion calculates the go version to use for the given module. Assumes existence of git command on the path.

func New

func New() *cobra.Command

Types

type ErrNoModFile

type ErrNoModFile struct{}

func (ErrNoModFile) Error

func (e ErrNoModFile) Error() string

type NopWriteCloser

type NopWriteCloser struct {
	io.Writer
}

func (NopWriteCloser) Close

func (NopWriteCloser) Close() error