cmd

package
v0.0.0-...-e6a2c38 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2016 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// VERSION is set during build
	VERSION string
	// APIHostname is the hostname for the API
	APIHostname string
	// APIAddress is the username for the API
	APIAddress string
	// APIToken is the username for the API
	APIToken string
	// FallbackHostname is used if no custom hostname
	FallbackHostname = "https://api.clinot.es"
)
View Source
var RootCmd = &cobra.Command{
	Use:   "cn",
	Short: "Access clinot.es from the command line",
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute(version string)

Execute adds all child commands to the root command

Types

type APIErrorResponse

type APIErrorResponse struct {
	Error   bool   `json:"error"`
	Message string `json:"message"`
	Done    bool   `json:"done"`
}

APIErrorResponse stores information from the API

Jump to

Keyboard shortcuts

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