{"modulePath":"github.com/pb33f/openapi-changes","version":"v0.4.4","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package cmd\n\n## Constants\n\n```go\nconst (\n\t// DefaultConfigFileName is the default name for the breaking rules config file\n\tDefaultConfigFileName = \"changes-rules.yaml\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tVersion string\n\tCommit  string\n\tDate    string\n)\n```\n\n## Functions\n\n```go\nfunc ApplyBreakingRulesConfig(config *model.BreakingRulesConfig)\n```\nApplyBreakingRulesConfig sets the active breaking rules config in libopenapi. Thread-safe — delegates to internal/breakingrules which guards with a mutex.\n\n```go\nfunc Execute(version, commit, date string)\n```\n\n```go\nfunc ExtractGithubDetailsFromURL(specURL *url.URL) (string, string, string, error)\n```\n\n```go\nfunc FlattenReport(report *model.Report) *model.FlatReport\n```\n\n```go\nfunc FlattenReportWithParameterNames(report *model.Report, parameterNames map[string]string) *model.FlatReport\n```\nFlattenReportWithParameterNames flattens a report and normalizes parameter paths using the name map from the changerator (keyed by full parameter JSONPath, e.g., \"$.paths\\['/pets'].get.parameters\\[0]\" → \"petId\").\n\n```go\nfunc GetConsoleCommand() *cobra.Command\n```\n\n```go\nfunc GetHTMLReportCommand() *cobra.Command\n```\n\n```go\nfunc GetMarkdownReportCommand() *cobra.Command\n```\n\n```go\nfunc GetReportCommand() *cobra.Command\n```\n\n```go\nfunc GetSummaryCommand() *cobra.Command\n```\nGetSummaryCommand returns the cobra command for the current summary command.\n\n```go\nfunc GetVersionCommand() *cobra.Command\n```\nGetVersionCommand returns the cobra command for printing the raw build version.\n\n```go\nfunc LoadBreakingRulesConfig(configPath string) (*model.BreakingRulesConfig, error)\n```\nLoadBreakingRulesConfig 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.\n\n```go\nfunc PrintConfigError(err error, palette terminal.Palette)\n```\nPrintConfigError prints a config error with nice formatting using lipgloss (no pterm).\n\n```go\nfunc ResetBreakingRulesConfig()\n```\nResetBreakingRulesConfig resets the active breaking rules to libopenapi defaults. Thread-safe — delegates to internal/breakingrules which guards with a mutex.\n\n## Types\n\n```go\ntype ConfigParseError struct {\n\tFilePath string\n\tErr      error\n}\n```\nConfigParseError represents a YAML parsing error with context\n\n```go\nfunc (e *ConfigParseError) Error() string\n```\n\n```go\nfunc (e *ConfigParseError) Unwrap() error\n```\n\n```go\ntype ConfigValidationError struct {\n\tFilePath string\n\tResult   *model.ConfigValidationResult\n}\n```\nConfigValidationError represents validation errors in the config structure\n\n```go\nfunc (e *ConfigValidationError) Error() string\n```\n\n","path":"github.com/pb33f/openapi-changes/cmd","name":"cmd","synopsis":"","isRedistributable":true}
