Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repl no color no header flags #7040

Merged

Conversation

jamin-eisenberg
Copy link
Contributor

@jamin-eisenberg jamin-eisenberg commented Aug 28, 2024

Closes #6570.

This is my first time:

  • contributing to open-source
  • doing anything useful in Rust

so please let me know if I'm doing anything wrong or even abnormal.

Adds two new flags to roc repl: --no-header and --no-color. Omitting the header is simple - we just don't print it. Removing colors involves some ANSI code filtering on pre-built strings, as well as defining a colorless palette to use in more complex scenarios.

@jamin-eisenberg jamin-eisenberg force-pushed the repl-no-color-no-header-flags branch 2 times, most recently from c794515 to 412e609 Compare August 28, 2024 22:14
jeisenberg-chwy and others added 3 commits August 28, 2024 18:15
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
@jamin-eisenberg jamin-eisenberg marked this pull request as ready for review August 28, 2024 22:20
@smores56 smores56 merged commit 527d1dd into roc-lang:main Sep 6, 2024
18 checks passed
@smores56
Copy link
Sponsor Collaborator

smores56 commented Sep 6, 2024

Thanks for the contribution!

@jamin-eisenberg jamin-eisenberg deleted the repl-no-color-no-header-flags branch September 7, 2024 00:05
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.

feat: suppress REPL startup message
4 participants