Skip to content

Conversation

@par4m
Copy link
Contributor

@par4m par4m commented Apr 17, 2025

This PR addresses #321 by introducing colorized status output to the CLI using the owo-colors crate.

  • No breaking changes

Before:
image

After:
image

@badmonster0
Copy link
Member

Shall we also add color for the status for flows (the line of Flow: TextEmbedding in the screenshot above)?

@par4m
Copy link
Contributor Author

par4m commented Apr 18, 2025

How to check for "NEW" status ? or should I set the None branch to NEW

@badmonster0
Copy link
Member

How to check for "NEW" status ? or should I set the None branch to NEW

Code to display the line of [ NEW ] Flow: xxxx is here:

write!(f, "{} Flow: {}\n", ObjectSetupStatusCode(flow_ssc), self.0)?;

@par4m
Copy link
Contributor Author

par4m commented Apr 18, 2025

image

Copy link
Member

@badmonster0 badmonster0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@badmonster0 badmonster0 merged commit 774a296 into cocoindex-io:main Apr 18, 2025
2 checks passed
badmonster0 pushed a commit that referenced this pull request Apr 21, 2025
* Feat(cli): Add colors to Cli Status

* Feat(cli): Cli Status Colors - Add colors to brackets and maintain bg

* cli: use AnsiColors

* cli: rename

* cli: add flow colors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants