workspace

package
v0.0.0-...-65f6afe Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGitDir

func GetGitDir() (string, error)

GetGitDir finds a directory containing .git/ starting from the current directory and going up.

func GetGithubDir

func GetGithubDir() (string, error)

func Root

func Root(p string) (string, error)

Root takes an arbitrary path inside a workspace returns the path to the logical root of the workspace from which workspace-absolute paths are resolved. In the case of github repos, it is the part of the input path up to and including "/github.com/" (without trailing slash). If no well-known workspace identification method works, it returns a directory part of the input path. TODO(salikh): Implement looking up for $DIR/.git.

Types

This section is empty.

Jump to

Keyboard shortcuts

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