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 Confirm = func(prompt string, result *bool) error { p := &survey.Confirm{ Message: prompt, Default: true, } return survey.AskOne(p, result) }
View Source
var RootCmd = &cobra.Command{ Use: "gh <command> <subcommand> [flags]", Short: "GitHub CLI", Long: `Work seamlessly with GitHub from the command line.`, SilenceErrors: true, SilenceUsage: true, Example: heredoc.Doc(` $ gh issue create $ gh repo clone cli/cli $ gh pr checkout 321 `), Annotations: map[string]string{ "help:feedback": ` Fill out our feedback form https://forms.gle/umxd3h31c7aMQFKG7 Open an issue using “gh issue create -R cli/cli”`}, }
RootCmd is the entry point of command-line execution
View Source
var SurveyAsk = func(qs []*survey.Question, response interface{}, opts ...survey.AskOpt) error { return survey.Ask(qs, response, opts...) }
View Source
var Version = "DEV"
Version is dynamically set by the toolchain or overridden by the Makefile.
Functions ¶
func BasicClient ¶
BasicClient returns an API client that borrows from but does not depend on user configuration
func ExpandAlias ¶ added in v0.10.0
func HasFailed ¶ added in v0.10.1
func HasFailed() bool
HasFailed signals that the main process should exit with non-zero status
func RunCommand ¶ added in v0.8.0
Types ¶
type QuestionStub ¶ added in v0.6.2
Click to show internal directories.
Click to hide internal directories.