Documentation
¶
Index ¶
- Constants
- Variables
- func ApplyBreakingRulesConfig(config *model.BreakingRulesConfig)
- func BuildLabeledTreeMapNode(list *[]pterm.LeveledListItem, field reflect.Value, level int, label string, ...)
- func BuildParameterSliceTreeNode(list *[]pterm.LeveledListItem, field reflect.Value, level int, label string, ...)
- func BuildSliceTreeNode[T any](list *[]pterm.LeveledListItem, field reflect.Value, level int, label string, ...)
- func BuildTreeMapNode(list *[]pterm.LeveledListItem, field reflect.Value, level int, markdown bool)
- func DigIntoObject[T any](list *[]pterm.LeveledListItem, field reflect.Value, level int, label string, ...)
- func Execute(version, commit, date string)
- func ExtractGithubDetailsFromURL(url *url.URL) (string, string, string, error)
- func FlattenHistoricalReport(report *model.HistoricalReport) *model.FlatHistoricalReport
- func FlattenReport(report *model.Report) *model.FlatReport
- func GetConsoleCommand() *cobra.Command
- func GetHTMLReportCommand() *cobra.Command
- func GetMarkdownReportCommand() *cobra.Command
- func GetReportCommand() *cobra.Command
- func GetSummaryCommand() *cobra.Command
- func LoadBreakingRulesConfig(configPath string) (*model.BreakingRulesConfig, error)
- func PrintBanner()
- func PrintConfigError(err error)
- func PrintHowToUse(command string)
- func ResetBreakingRulesConfig()
- func RunGitHistoryHTMLReport(gitPath, filePath, baseCommit string, latest, useCDN bool, ...) ([]byte, []*model.Report, []error)
- func RunGitHistoryMarkdownReport(gitPath, filePath, baseCommit string, latest, useCDN bool, ...) ([]byte, []*model.Report, []error)
- func RunGithubHistoryHTMLReport(username, repo, filePath, baseCommit string, latest, useCDN, embeddedMode bool, ...) ([]byte, []*model.Report, []error)
- func RunGithubHistoryMarkdownReport(username, repo, filePath, baseCommit string, latest, useCDN, embeddedMode bool, ...) ([]byte, []*model.Report, []error)
- func RunLeftRightHTMLReport(left, right string, useCDN bool, progressChan chan *model.ProgressUpdate, ...) ([]byte, []error)
- func RunLeftRightHTMLReportViaString(left, right string, useCDN, embedded bool, ...) ([]byte, []error)
- func RunLeftRightMarkDownReport(left, right string, useCDN bool, progressChan chan *model.ProgressUpdate, ...) ([]byte, []error)
- func RunLeftRightMarkDownReportViaString(left, right string, useCDN, embedded bool, ...) ([]byte, []error)
- type ConfigParseError
- type ConfigValidationError
Constants ¶
const (
// DefaultConfigFileName is the default name for the breaking rules config file
DefaultConfigFileName = "changes-rules.yaml"
)
Variables ¶
var ( Version string Commit string Date string )
Functions ¶
func ApplyBreakingRulesConfig ¶ added in v0.0.91
func ApplyBreakingRulesConfig(config *model.BreakingRulesConfig)
ApplyBreakingRulesConfig sets the active breaking rules config in libopenapi. If config is nil, uses libopenapi defaults. The config is merged on top of defaults, so only specified rules are overridden.
func BuildLabeledTreeMapNode ¶ added in v0.0.91
func BuildLabeledTreeMapNode(list *[]pterm.LeveledListItem, field reflect.Value, level int, label string, markdown bool)
BuildLabeledTreeMapNode builds tree nodes for a map field with an optional label. If label is non-empty, it adds the label as a parent node before the map entries.
func BuildParameterSliceTreeNode ¶ added in v0.0.91
func BuildParameterSliceTreeNode(list *[]pterm.LeveledListItem, field reflect.Value, level int, label string, markdown bool)
BuildParameterSliceTreeNode builds tree nodes for parameter changes, adding the parameter name as a label. It also includes any pending parameter addition/removal changes from PropertyChanges.
func BuildSliceTreeNode ¶
func BuildTreeMapNode ¶
func DigIntoObject ¶
func FlattenHistoricalReport ¶ added in v0.0.54
func FlattenHistoricalReport(report *model.HistoricalReport) *model.FlatHistoricalReport
func FlattenReport ¶ added in v0.0.54
func FlattenReport(report *model.Report) *model.FlatReport
func GetConsoleCommand ¶
func GetHTMLReportCommand ¶
func GetMarkdownReportCommand ¶ added in v0.0.84
func GetReportCommand ¶
func GetSummaryCommand ¶
func LoadBreakingRulesConfig ¶ added in v0.0.91
func LoadBreakingRulesConfig(configPath string) (*model.BreakingRulesConfig, error)
LoadBreakingRulesConfig loads a breaking rules configuration from the specified path. If configPath is empty, it searches default locations (current directory, then ~/.config). Returns nil config if no config is found in default locations (uses libopenapi defaults). Returns error if user-specified config path doesn't exist or has invalid YAML.
func PrintBanner ¶
func PrintBanner()
func PrintConfigError ¶ added in v0.0.91
func PrintConfigError(err error)
PrintConfigError prints a config error with nice formatting using pterm. Displays in red with spacing above and below.
func PrintHowToUse ¶
func PrintHowToUse(command string)
func ResetBreakingRulesConfig ¶ added in v0.0.91
func ResetBreakingRulesConfig()
ResetBreakingRulesConfig resets the active breaking rules to libopenapi defaults.
func RunGitHistoryHTMLReport ¶
func RunGitHistoryHTMLReport(gitPath, filePath, baseCommit string, latest, useCDN bool, progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError, base string, remote, extRefs bool, globalRevisions bool, limit int, limitTime int, breakingConfig *whatChangedModel.BreakingRulesConfig, ) ([]byte, []*model.Report, []error)
func RunGitHistoryMarkdownReport ¶ added in v0.0.84
func RunGitHistoryMarkdownReport(gitPath, filePath, baseCommit string, latest, useCDN bool, progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError, base string, remote, extRefs bool, globalRevisions bool, limit int, limitTime int, breakingConfig *whatChangedModel.BreakingRulesConfig, ) ([]byte, []*model.Report, []error)
func RunGithubHistoryHTMLReport ¶
func RunGithubHistoryHTMLReport(username, repo, filePath, baseCommit string, latest, useCDN, embeddedMode bool, progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError, limit int, limitTime int, base string, remote, extRefs bool, breakingConfig *whatChangedModel.BreakingRulesConfig, ) ([]byte, []*model.Report, []error)
func RunGithubHistoryMarkdownReport ¶ added in v0.0.84
func RunGithubHistoryMarkdownReport(username, repo, filePath, baseCommit string, latest, useCDN, embeddedMode bool, progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError, limit int, limitTime int, base string, remote, extRefs bool, breakingConfig *whatChangedModel.BreakingRulesConfig, ) ([]byte, []*model.Report, []error)
func RunLeftRightHTMLReport ¶
func RunLeftRightHTMLReport(left, right string, useCDN bool, progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError, base string, remote, extRefs bool, breakingConfig *whatChangedModel.BreakingRulesConfig, ) ([]byte, []error)
func RunLeftRightHTMLReportViaString ¶
func RunLeftRightHTMLReportViaString(left, right string, useCDN, embedded bool, progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError, base string, remote, extRefs bool, breakingConfig *whatChangedModel.BreakingRulesConfig, ) ([]byte, []error)
func RunLeftRightMarkDownReport ¶ added in v0.0.84
func RunLeftRightMarkDownReport(left, right string, useCDN bool, progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError, base string, remote, extRefs bool, breakingConfig *whatChangedModel.BreakingRulesConfig, ) ([]byte, []error)
func RunLeftRightMarkDownReportViaString ¶ added in v0.0.84
func RunLeftRightMarkDownReportViaString(left, right string, useCDN, embedded bool, progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError, base string, remote, extRefs bool, breakingConfig *whatChangedModel.BreakingRulesConfig, ) ([]byte, []error)
Types ¶
type ConfigParseError ¶ added in v0.0.91
ConfigParseError represents a YAML parsing error with context
func (*ConfigParseError) Error ¶ added in v0.0.91
func (e *ConfigParseError) Error() string
func (*ConfigParseError) Unwrap ¶ added in v0.0.91
func (e *ConfigParseError) Unwrap() error
type ConfigValidationError ¶ added in v0.0.91
type ConfigValidationError struct {
FilePath string
Result *model.ConfigValidationResult
}
ConfigValidationError represents validation errors in the config structure
func (*ConfigValidationError) Error ¶ added in v0.0.91
func (e *ConfigValidationError) Error() string