Documentation ¶
Overview ¶
Package githubutils provides utility functions to utilize github in the context of retrieving and saving ethpm package manifests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGithubURI ¶
CreateGithubURI will construct a valid uri with the given information
func GetCommit ¶
GetCommit takes a local repository directory and branch, default is 'master' if an empty string, and return the latest commit hash
func GetETHPMManifest ¶
GetETHPMManifest takes a complete github commit uri, and clones it into the given parent directory. If parentdir is an empty string, it will clone into the current working directory, then go into this directory and retrieve the ethpm manifest by looking for an 'ethpm.json' file.
func IsGithubURI ¶
IsGithubURI checks to see if the given uri is a valid github uri and returns true if so
Types ¶
This section is empty.