cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayIssues

func DisplayIssues(result *github.IssuesSearchResult, w io.Writer) error

DisplayIssues will display issues based on the given search criteria

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewIssuesCommand

func NewIssuesCommand(client hagen.Provider) *cobra.Command

NewIssuesCommand will register the `issues` command with the app

func NewRootCommand

func NewRootCommand() *cobra.Command

NewRootCommand will return the application

func NewSearchFromIssueOptions

func NewSearchFromIssueOptions(opts IssuesOptions) (string, github.SearchOptions)

NewSearchFromIssueOptions will return details that can perform a GitHub search

Types

type IssuesOptions

type IssuesOptions struct {
	Args     []string
	Count    int
	Query    string
	Template string
}

IssuesOptions defines what arguments/options the user can provide

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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