package
0.0.0-20220328024126-2ee2aa9d18c6
Repository: https://github.com/nivl/git-go.git
Documentation: pkg.go.dev
# Functions
NewDirPathFlagWithDefault return a new Flag Value that should hold a valid path to a directory.
NewFilePathFlagWithDefault return a new Flag Value that should hold a valid path to a file.
NewPathFlagWithDefault return a new Flag Value that should hold a valid path to either a file or a directory.
WorkingTree returns the absolute path to the working tree.
WorkingTreeFromPath returns the absolute path to the root of a repo containing the provided directory.
# Constants
PathValueTypeAny represent a either a file or a directory.
PathValueTypeDir represent a directory.
PathValueTypeFile represent file.
# Variables
ErrIsDirectory is an error returned when a path points to a directory instead of a file.
ErrIsNotDirectory is an error returned when a path is expected to points to a directory but isn't.
ErrNoRepo is an error returned when no repo are found.
ErrUnknownType is an error returned when an unknown PathValueType is provided to a method.
# Type aliases
PathValueType represents the type of a path.