cmd

package
v0.0.0-...-ec710cb Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ApplicationName = "CaptainHook CLI"

ApplicationName is the name of the application

View Source
const FullVersion = VersionMajor + "." + VersionMinor + "." + VersionPatch

FullVersion contains the full version of this package in a printable string

View Source
const VersionMajor = "0"

VersionMajor 0 means in development, >1 ensures compatibility with each minor version, but breakes with new major version

View Source
const VersionMinor = "1"

VersionMinor introduces changes that require a new version number. If the major version is 0, they are likely to break compatibility

View Source
const VersionPatch = "0"

VersionPatch introduces changes that require a new version number. Follows semver specs.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute starts the CLI

func GetVersion

func GetVersion() string

GetVersion gets the server version

func RunRequest

func RunRequest(path, method string) string

RunRequest runs a request to the server to given path with http method

Types

type InternalError

type InternalError struct {
	Message string `json:"message"`
}

InternalError is any internal error

Jump to

Keyboard shortcuts

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