repotools

package module
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindRepoRoot

func FindRepoRoot(dir string) (string, error)

FindRepoRoot returns the absolute path to the root directory of the repository, or error. If the dir passed in is a relative path it will be used relative to the current working directory of the executable.

func JoinWorkingDirectory

func JoinWorkingDirectory(dir string) (string, error)

JoinWorkingDirectory will return an absolute file system path of the passed in dir path with the current working directory.

Types

type Boots

type Boots struct {
	// Directories to skip when iterating.
	SkipDirs []string
	// contains filtered or unexported fields
}

Boots was made for walking the file tree searching for modules.

func (*Boots) Modules

func (b *Boots) Modules() []string

Modules returns a slice of module directory absolute paths.

func (*Boots) Walk

func (b *Boots) Walk(path string, info os.FileInfo, err error) error

Walk is the function to walk folders in the repo searching for go modules.

Directories

Path Synopsis
changes module
cmd

Jump to

Keyboard shortcuts

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