Documentation ¶
Index ¶
- func LoadEnvfile(env *env.Env, path string) error
- func NewDownloader(url string) *downloader
- func VirtualenvName(proj *project.Project, version string) string
- type GitRepo
- type Github
- type GithubReleaseItem
- type GithubReleaseList
- type Golang
- type Homebrew
- type Node
- type PyEnv
- type Upgrader
- type Virtualenv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadEnvfile ¶ added in v0.10.0
LoadEnvfile sets all the environment variables defined in an envfile
func NewDownloader ¶ added in v0.11.0
func NewDownloader(url string) *downloader
Types ¶
type GitRepo ¶ added in v0.4.0
type GitRepo struct {
// contains filtered or unexported fields
}
GitRepo represents a local git repository
func NewGitRepo ¶ added in v0.4.0
NewGitRepo returns a GitRepo
func (*GitRepo) BuildGithubProjectURL ¶ added in v0.4.0
BuildGithubProjectURL builds the Github page url from the git remote url for a specific branch
func (*GitRepo) BuildGithubPullrequestURL ¶ added in v0.4.0
BuildGithubPullrequestURL builds the Github pullrequest url from the git remote url for a specific branch
func (*GitRepo) GetCurrentBranch ¶ added in v0.4.0
GetCurrentBranch returns the name of the branch or "HEAD" for special cases
func (*GitRepo) GetRemoteURL ¶ added in v0.4.0
GetRemoteURL returns the URL of the origin remote
type Github ¶ added in v0.2.0
type Github struct {
// contains filtered or unexported fields
}
func NewGithubWithClient ¶ added in v0.2.0
func (*Github) LatestRelease ¶ added in v0.2.0
func (g *Github) LatestRelease(platform string) (*GithubReleaseItem, error)
LatestRelease get latest release url for a specific `platform`
type GithubReleaseItem ¶ added in v0.2.0
type GithubReleaseList ¶ added in v0.2.0
type GithubReleaseList struct { TagName string `json:"tag_name"` Items []GithubReleaseItem `json:"assets"` }
type Homebrew ¶ added in v0.5.0
type Homebrew struct {
// contains filtered or unexported fields
}
Homebrew represent an homebrew installation
func NewHomebrew ¶ added in v0.5.0
func NewHomebrew() *Homebrew
NewHomebrew is returning a new Cellar
func NewHomebrewWithPrefix ¶ added in v0.5.0
NewHomebrewWithPrefix is returning a new Cellar at prefix
func (*Homebrew) IsInstalled ¶ added in v0.5.0
IsInstalled returns true if `pkg` is installed in cellar or in caskroom
type PyEnv ¶
type PyEnv struct {
// contains filtered or unexported fields
}
func (*PyEnv) VersionInstalled ¶
type Upgrader ¶ added in v0.2.0
type Upgrader struct {
// contains filtered or unexported fields
}
func NewUpgrader ¶ added in v0.2.0
NewUpgrader returns a new upgrade helper using the default http client
func NewUpgraderWithHTTPClient ¶ added in v0.2.0
NewUpgraderWithHTTPClient returns a new upgrade helper using the provided http client
func (*Upgrader) LatestRelease ¶ added in v0.2.0
func (u *Upgrader) LatestRelease(plateform string) (release *GithubReleaseItem, err error)
LatestRelease get latest release item for current platform
type Virtualenv ¶
type Virtualenv struct {
// contains filtered or unexported fields
}
func NewVirtualenv ¶
func NewVirtualenv(cfg *config.Config, name string) *Virtualenv
func (*Virtualenv) BinPath ¶
func (v *Virtualenv) BinPath() string
func (*Virtualenv) Exists ¶
func (v *Virtualenv) Exists() bool
func (*Virtualenv) Path ¶
func (v *Virtualenv) Path() string
func (*Virtualenv) Which ¶ added in v0.0.7
func (v *Virtualenv) Which(cmd string) string