cmd

package
v0.0.0-...-7c4dc51 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2018 License: MIT Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "bowie",
	Short: "Bowie is a pretty changelog generator",
	Long: `A pretty changelog generator,
built with love by mattstratton in Go.
	
Complete documentation is available at https://github.com/mattstratton/bowie`,

	Run: func(cmd *cobra.Command, args []string) {
		ChangeLog(userName, projectName)
	},
}

RootCmd is the main command executed when bowie is run

Functions

func ChangeLog

func ChangeLog(username, project string) error

ChangeLog generates the changelog with the given flags/configuration

func Execute

func Execute()

Execute is the main root command of bowie

func GetIssueType

func GetIssueType(issue *github.Issue) string

GetIssueType is a utility function to obtain the type of issue (enhancement, bug, or other)

func GetToken

func GetToken() (string, error)

GetToken returns the GitHub token based on environment variable or flag (flag takes precedence)

Types

type ChangeTag

type ChangeTag struct {
	Name         string
	Date         time.Time
	RefURL       string
	Enhancements []*github.Issue
	Bugs         []*github.Issue
	ClosedIssues []*github.Issue
}

ChangeTag is a git tag type, which includes all of the associated issues, etc

func GetTags

func GetTags() ([]*ChangeTag, error)

GetTags gets the list of all tags for the username and project, and returns a map of them

Jump to

Keyboard shortcuts

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