mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-02-20 09:51:42 +00:00
feat: implement progress indicators and status updates
- Enhanced dependency analyzer with AnalyzeActionFileWithProgress() method supporting optional progress callbacks - Added progress bars to analyzeDependencies() and analyzeSecurityDeps() functions for batch operations - Added IsQuiet() method to ColoredOutput for proper quiet mode handling - Progress bars automatically show for multi-file operations (>1 file) and respect quiet mode - Refactored analyzer code to reduce cyclomatic complexity from 14 to under 10 - Updated TODO.md to mark progress indicators task and all security tasks as completed - All tests passing, 0 linting issues, maintains backward compatibility Provides professional user experience with clear progress feedback for long-running operations.
This commit is contained in:
@@ -21,6 +21,11 @@ func NewColoredOutput(quiet bool) *ColoredOutput {
|
||||
}
|
||||
}
|
||||
|
||||
// IsQuiet returns whether the output is in quiet mode.
|
||||
func (co *ColoredOutput) IsQuiet() bool {
|
||||
return co.Quiet
|
||||
}
|
||||
|
||||
// Success prints a success message in green.
|
||||
func (co *ColoredOutput) Success(format string, args ...any) {
|
||||
if co.Quiet {
|
||||
|
||||
Reference in New Issue
Block a user