Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgumentOption ¶
ArgumentOption is an option not starting with '--' or '-'
type Changelog ¶
type Changelog struct { // NewPackage is true if this package does not exist in the old version NewPackage bool // RemovedPackage is true if this package does not exist in the new version RemovedPackage bool // Modified contains the details of a modified package. This is nil when either NewPackage or RemovedPackage is true Modified *report.Package }
Changelog describes the changelog generated for a package.
func (Changelog) GetBreakingChangeItems ¶
GetBreakingChangeItems returns an array of the breaking change items
func (Changelog) HasBreakingChanges ¶
HasBreakingChanges returns if this report of changelog contains breaking changes
func (Changelog) ToCompactMarkdown ¶
ToCompactMarkdown returns the markdown string of this changelog but more compact
func (Changelog) ToMarkdown ¶
ToMarkdown returns the markdown string of this changelog
type FlagOption ¶
FlagOption is an option that starts with '--' but do not have a value
type KeyValueOption ¶
KeyValueOption is an option that starts with '--' and have a value
type Metadata ¶
type Metadata interface { // SwaggerFiles returns the related swagger files in this tag SwaggerFiles() []string // PackagePath returns the output package path of this tag PackagePath() string // Namespace returns the namespace of this tag Namespace() string }
Metadata ...
type Option ¶
type Option interface { // Type returns the type of this option Type() OptionType // Format returns the actual option in string Format() string }
Option describes an option of a autorest command line
func NewArgument ¶
NewArgument returns a new argument option (without "--")
func NewFlagOption ¶
NewFlagOption returns a flag option (with "--", without value)
func NewKeyValueOption ¶
NewKeyValueOption returns a key-value option like "--tag=something"
type OptionType ¶
type OptionType string
OptionType describes the type of the option, possible values are 'Argument', 'Flag' or 'KeyValue'
const ( // Argument ... Argument OptionType = "Argument" // Flag ... Flag OptionType = "Flag" // KeyValue ... KeyValue OptionType = "KeyValue" )