Documentation
¶
Index ¶
- func FormatFixReport(result *validator.FixResult) string
- func FormatValidationReport(result *validator.ValidationResult) string
- func HasActiveFilters(filter *fogit.Filter) bool
- func IsValidFormat(format string) bool
- func IsValidOutputFormat(format string) bool
- func IsValidShowFormat(format string) bool
- func OutputAsJSON(w io.Writer, data interface{}) error
- func OutputAsYAML(w io.Writer, data interface{}) error
- func OutputCSV(w io.Writer, features []*fogit.Feature) error
- func OutputFeatureJSON(w io.Writer, feature *fogit.Feature) error
- func OutputFeatureText(w io.Writer, feature *fogit.Feature, showRels, showVers bool) error
- func OutputFeatureYAML(w io.Writer, feature *fogit.Feature) error
- func OutputFeaturesForFile(w io.Writer, filePath string, features []*fogit.Feature) error
- func OutputFilesForFeature(w io.Writer, feature *fogit.Feature) error
- func OutputFilesSummary(w io.Writer, features []*fogit.Feature) error
- func OutputFormatted(w io.Writer, format string, data interface{}, textFn func(io.Writer) error) error
- func OutputJSON(w io.Writer, features []*fogit.Feature) error
- func OutputRelationshipsJSON(w io.Writer, feature *fogit.Feature, outgoing []fogit.Relationship, ...) error
- func OutputRelationshipsText(w io.Writer, feature *fogit.Feature, outgoing []fogit.Relationship, ...) error
- func OutputStats(w io.Writer, stats *features.RepoStats, details bool) error
- func OutputTable(w io.Writer, features []*fogit.Feature) error
- func OutputTree(w io.Writer, root *fogit.Feature, allFeatures []*fogit.Feature, ...) error
- func PrintFixResult(result *validator.FixResult)
- func PrintSuggestions(w io.Writer, identifier string, suggestions []search.Match, ...)
- func PrintValidationResult(result *validator.ValidationResult)
- type Format
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatFixReport ¶
FormatFixReport formats a fix result as a report string
func FormatValidationReport ¶
func FormatValidationReport(result *validator.ValidationResult) string
FormatValidationReport formats a validation result as a report string
func HasActiveFilters ¶
HasActiveFilters checks if any filter criteria are set
func IsValidFormat ¶
IsValidFormat checks if the output format is supported
func IsValidOutputFormat ¶
IsValidOutputFormat checks if the format is a valid output format
func IsValidShowFormat ¶
IsValidShowFormat checks if the output format is supported
func OutputAsJSON ¶
OutputJSON writes any data as JSON to the writer
func OutputAsYAML ¶
OutputYAML writes any data as YAML to the writer
func OutputFeatureJSON ¶
OutputFeatureJSON writes feature as JSON to the writer
func OutputFeatureText ¶
OutputFeatureText writes feature as formatted text to the writer
func OutputFeatureYAML ¶
OutputFeatureYAML writes feature as YAML to the writer
func OutputFeaturesForFile ¶
OutputFeaturesForFile prints features associated with a file
func OutputFilesForFeature ¶
OutputFilesForFeature prints files associated with a feature
func OutputFilesSummary ¶
OutputFilesSummary prints a summary of file associations
func OutputFormatted ¶
func OutputFormatted(w io.Writer, format string, data interface{}, textFn func(io.Writer) error) error
OutputFormatted outputs data in the specified format For text format, it calls the provided textFn function
func OutputJSON ¶
OutputJSON writes features as JSON to the writer
func OutputRelationshipsJSON ¶
func OutputRelationshipsJSON(w io.Writer, feature *fogit.Feature, outgoing []fogit.Relationship, incoming []features.RelationshipWithSource) error
OutputRelationshipsJSON prints relationships in JSON format
func OutputRelationshipsText ¶
func OutputRelationshipsText(w io.Writer, feature *fogit.Feature, outgoing []fogit.Relationship, incoming []features.RelationshipWithSource) error
OutputRelationshipsText prints relationships in text format
func OutputStats ¶
OutputStats prints repository statistics
func OutputTable ¶
OutputTable writes features as a formatted table to the writer
func OutputTree ¶
func OutputTree(w io.Writer, root *fogit.Feature, allFeatures []*fogit.Feature, hierarchyTypes []string, maxDepth int) error
OutputTree prints a hierarchical tree of features
func PrintFixResult ¶
PrintFixResult outputs fix results to stdout
func PrintSuggestions ¶
func PrintSuggestions(w io.Writer, identifier string, suggestions []search.Match, commandExample string)
PrintSuggestions prints "Did you mean?" suggestions for a missing feature
func PrintValidationResult ¶
func PrintValidationResult(result *validator.ValidationResult)
PrintValidationResult outputs validation results to stdout