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