nerd

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 7 Imported by: 2

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 GHError added in v0.3.1

type GHError struct {
	Message string `json:"message"`
	URL     string `json:"documentation_url"`
}

GHError is an error object from the GitHub API.

type GHRelease added in v0.3.1

type GHRelease struct {
	Name    string `json:"name"`
	HTMLURL string `json:"html_url"`
}

GHRelease is a `release` object from the GitHub API.

type SemVer added in v0.3.1

type SemVer struct {
	Major int
	Minor int
	Patch int
}

SemVer is a semantic version.

func ParseSemVer added in v0.3.1

func ParseSemVer(ver string) (*SemVer, error)

ParseSemVer parses a semantic version from string.

func (*SemVer) GreaterThan added in v0.3.1

func (s *SemVer) GreaterThan(other *SemVer) bool

GreaterThan checks if `s` is a greater semantic version than `other`

func (*SemVer) ToString added in v0.3.1

func (s *SemVer) ToString() string

ToString converts a SemVer to a string

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

Jump to

Keyboard shortcuts

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