Documentation ¶
Index ¶
Constants ¶
View Source
const ( //GHReleasesURL is the GitHub API URL that lists all releases. GHReleasesURL = "https://api.github.com/repos/nerdalize/nerd/releases" //BuiltFromSourceVersion is the version when building form source (no real version). BuiltFromSourceVersion = "built.from.src" )
Variables ¶
View Source
var ( //ErrNotImplemented is returned when a function is not yet implemented ErrNotImplemented = errors.New("not yet implemented") //ErrTokenRevoked is returned when trying to refresh a revoked token ErrTokenRevoked = errors.New("ErrTokenRevoked") //ErrTokenUnset is returned when no oauth access token was found in the config file ErrTokenUnset = errors.New("You're not logged in. Please login with `nerd login`.") //ErrProjectIDNotSet is returned when no project id is set in the session ErrProjectIDNotSet = errors.New("No project ID specified, use `nerd project set` to configure a project to work on.") )
Functions ¶
func VersionMessage ¶ added in v0.3.1
func VersionMessage(current string)
VersionMessage shows a message to the user if a new CLI version is available.
Types ¶
type SemVer ¶ added in v0.3.1
SemVer is a semantic version.
func ParseSemVer ¶ added in v0.3.1
ParseSemVer parses a semantic version from string.
func (*SemVer) GreaterThan ¶ added in v0.3.1
GreaterThan checks if `s` is a greater semantic version than `other`
Directories ¶
Path | Synopsis |
---|---|
Package conf gives the CLI access to the nerd config file.
|
Package conf gives the CLI access to the nerd config file. |
service
|
|
Click to show internal directories.
Click to hide internal directories.