Documentation ¶
Index ¶
- Constants
- func Run(ctx context.Context, argv []string, outStream, errStream io.Writer) error
- type GH2Changelog
- func (gch *GH2Changelog) Changelog(ctx context.Context, tag string) (string, string, error)
- func (gch *GH2Changelog) Changelogs(ctx context.Context, limit int) ([]string, []string, error)
- func (gch *GH2Changelog) Draft(ctx context.Context, nextTag string, releaseDate time.Time) (string, string, error)
- func (gch *GH2Changelog) Latest(ctx context.Context) (string, string, error)
- func (gch *GH2Changelog) Unreleased(ctx context.Context) (string, string, error)
- func (gch *GH2Changelog) Update(section string, mode int) (string, error)
- type Option
Constants ¶
View Source
const ( DryRun = 1 << iota Trunc )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GH2Changelog ¶
type GH2Changelog struct {
// contains filtered or unexported fields
}
GH2Changelog is to output changelogs
func New ¶
func New(ctx context.Context, opts ...Option) (*GH2Changelog, error)
New returns new GH2Changelog
func (*GH2Changelog) Changelogs ¶
Changelogs gets changelogs
func (*GH2Changelog) Draft ¶
func (gch *GH2Changelog) Draft(ctx context.Context, nextTag string, releaseDate time.Time) (string, string, error)
Draft gets draft changelog
func (*GH2Changelog) Unreleased ¶
Unreleased gets unreleased changelog
type Option ¶
type Option func(*GH2Changelog)
Options is for functional option
func SetOutputs ¶
SetOutputs sets a stdout and a stderr
Source Files ¶
Click to show internal directories.
Click to hide internal directories.