Documentation
¶
Index ¶
- Constants
- func HomeBrewPackageIsInstalled(formula string) bool
- func LoadEnvfile(env *env.Env, path string) error
- func NewDownloader(url string) *downloader
- func NodeJSIsSupportedOnThisPlatform() bool
- func VirtualenvName(proj *project.Project, version string) string
- type GitRepo
- type Github
- type GithubReleaseItem
- type GithubReleaseList
- type Golang
- type Node
- type PyEnv
- type Upgrader
- type Virtualenv
Constants ¶
const EnvHomebrewPrefix = "HOMEBREW_PREFIX"
Variables ¶
This section is empty.
Functions ¶
func HomeBrewPackageIsInstalled ¶ added in v0.14.0
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
func NodeJSIsSupportedOnThisPlatform ¶ added in v0.14.0
func NodeJSIsSupportedOnThisPlatform() bool
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 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