paths

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const PackageDownloads = "hvm-downloads"
View Source
const PackageRepository = "hvm-packages"

Variables

This section is empty.

Functions

func FindDirGitRoot

func FindDirGitRoot(dir string) string

func FindGitRoot

func FindGitRoot() string

Types

type Paths

type Paths struct {
	GitRoot          string
	WorkingDirectory string
	HomeDirectory    string
	ConfigDirectory  string
	TempDirectory    string
	ReposDirectory   string
	PkgsDirectory    string
}
var AppPaths *Paths

func NewPaths

func NewPaths() (*Paths, error)

func NewPathsFromDir

func NewPathsFromDir(dir string) (*Paths, error)

func (*Paths) ConfigDirs added in v0.3.1

func (pths *Paths) ConfigDirs() []string

func (*Paths) ConfigFiles added in v0.3.1

func (pths *Paths) ConfigFiles() []string

func (*Paths) ResolveDir added in v0.3.0

func (pths *Paths) ResolveDir(dir string) string

Jump to

Keyboard shortcuts

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