github_issue_c

package
v0.0.0-...-0e3b330 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Create = &cobra.Command{
	Use:     "create",
	Aliases: []string{"c"},
	Run: func(cmd *cobra.Command, args []string) {

		title := prompt.String("Issue title", true)
		issuedDetails := IssueDetails(cmd, title)

		github.CreateIssue(title, issuedDetails, []string{"enhancement"})
		clog.Info(issuedDetails)
	},
}
View Source
var List = &cobra.Command{
	Use:     "list",
	Aliases: []string{"l"},
	Run: func(cmd *cobra.Command, args []string) {

		issues := github.ListIssue()

		for _, list := range issues {
			clog.Infof("[ %v ] %s", list.Id, list.Title)
		}

	},
}
View Source
var Projects = &cobra.Command{
	Use:     "projects",
	Aliases: []string{"p"},
	Run: func(cmd *cobra.Command, args []string) {

		github.GetProjects()

	},
}
View Source
var Root = &cobra.Command{
	Use:     "issue",
	Aliases: []string{"i"},
}

Functions

func CreateTempFile

func CreateTempFile(contents string) string

func IssueDetails

func IssueDetails(cmd *cobra.Command, title string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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