cmd

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

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

Go to latest
Published: Jun 21, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvPrefix          = "CHANGELOG_ASSEMBLER_"
	EnvUnreleasedDir   = EnvPrefix + "UNRELEASED_DIR"
	EnvOutputFile      = EnvPrefix + "OUTPUT_FILE"
	EnvTemplateFile    = EnvPrefix + "TEMPLATE_FILE"
	EnvGroupComponents = EnvPrefix + "GROUP_COMPONENTS"
)
View Source
const DefaultVersionFormat = `` /* 156-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Command() *cobra.Command
}

func New

func New(application string) Command

type CommandBase

type CommandBase struct {
	// contains filtered or unexported fields
}

func (*CommandBase) Command

func (b *CommandBase) Command() *cobra.Command

type CreateCommand

type CreateCommand struct {
	CommandBase
	// contains filtered or unexported fields
}

func NewCreateCommand

func NewCreateCommand(output io.EntityWriter) *CreateCommand

func (*CreateCommand) RunE

func (c *CreateCommand) RunE(_ *cobra.Command, args []string) error

type ParseCommand

type ParseCommand struct {
	CommandBase
	// contains filtered or unexported fields
}

func NewParseCommand

func NewParseCommand(ios io.IOFactory) *ParseCommand

func (*ParseCommand) RunE

func (c *ParseCommand) RunE(_ *cobra.Command, args []string) error

type ReasonCommand

type ReasonCommand struct {
	Reason       change.Reason
	Component    string
	MergeRequest int

	CommandBase
	// contains filtered or unexported fields
}

func NewReasonCommand

func NewReasonCommand(reason change.Reason, output io.EntityWriter) *ReasonCommand

func (*ReasonCommand) RunE

func (c *ReasonCommand) RunE(_ *cobra.Command, args []string) error

type ReleaseCommand

type ReleaseCommand struct {
	CommandBase
	// contains filtered or unexported fields
}

func NewReleaseCommand

func NewReleaseCommand(input io.EntityReader, ioFactory io.IOFactory) *ReleaseCommand

func (*ReleaseCommand) RunE

func (c *ReleaseCommand) RunE(_ *cobra.Command, args []string) error

type RootCommand

type RootCommand struct {
	CommandBase
}

func NewRootCommand

func NewRootCommand(application string) *RootCommand

type VersionCommand

type VersionCommand struct {
	Format string

	CommandBase
}

func NewVersionCommand

func NewVersionCommand() *VersionCommand

func (*VersionCommand) RunE

func (c *VersionCommand) RunE(_ *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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