command

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildDate = "YYYY-MM-DD"

BuildDate is dynamically set at build time in the Makefile

View Source
var RootCmd = &cobra.Command{
	Use:   "gh",
	Short: "GitHub CLI",
	Long: `Work seamlessly with GitHub from the command line.

GitHub CLI is in early stages of development, and we'd love to hear your
feedback at <https://forms.gle/pBt3kujJi7nXZmcM6>`,

	SilenceErrors: true,
	SilenceUsage:  true,
}

RootCmd is the entry point of command-line execution

View Source
var Version = "DEV"

Version is dynamically set at build time in the Makefile

Functions

func BasicClient

func BasicClient() (*api.Client, error)

BasicClient returns an API client that borrows from but does not depend on user configuration

Types

type Action added in v0.5.0

type Action int
const (
	PreviewAction Action = iota
	SubmitAction
	CancelAction
)

type FlagError

type FlagError struct {
	Err error
}

FlagError is the kind of error raised in flag processing

func (FlagError) Error added in v0.5.0

func (fe FlagError) Error() string

func (FlagError) Unwrap added in v0.5.0

func (fe FlagError) Unwrap() error

Jump to

Keyboard shortcuts

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