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

refactor: use the atty crate for isatty() detection #862

Merged
merged 1 commit into from
Feb 19, 2017

Conversation

pkgw
Copy link
Contributor

@pkgw pkgw commented Feb 19, 2017

Not only does this remove some unsafe code from clap itself, atty does the right thing on Windows too. This isn't relevant now since we don't currently support colorized output on Windows, but will come in handy if/when we implement that feature (#836).

Not only does this remove some unsafe code from clap itself, `atty` does the
right thing on Windows too. This isn't relevant now since we don't currently
support colorized output on Windows, but will come in handy if/when we
implement that feature (clap-rs#836).
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 90.609% when pulling 68e0368 on pkgw:pr-atty into 6f9a0ba on kbknapp:master.

@kbknapp
Copy link
Member

kbknapp commented Feb 19, 2017

Excellent thanks!

@homu r+

@homu
Copy link
Contributor

homu commented Feb 19, 2017

📌 Commit 68e0368 has been approved by kbknapp

homu added a commit that referenced this pull request Feb 19, 2017
refactor: use the atty crate for isatty() detection

Not only does this remove some unsafe code from clap itself, `atty` does the right thing on Windows too. This isn't relevant now since we don't currently support colorized output on Windows, but will come in handy if/when we implement that feature (#836).
@homu
Copy link
Contributor

homu commented Feb 19, 2017

⚡ Test exempted - status

@homu homu merged commit 68e0368 into clap-rs:master Feb 19, 2017
@pkgw pkgw deleted the pr-atty branch February 19, 2017 18:35
wildwestrom added a commit to wildwestrom/clap that referenced this pull request Jul 29, 2022
Because why the hell not?

1.6.0 (2022-07-05)
New features:
    FEATURE clap-rs#832: Clarify that Captures::len includes all groups, not just matching groups.
    FEATURE clap-rs#857: Add an ExactSizeIterator impl for SubCaptureMatches.
    FEATURE clap-rs#861: Improve RegexSet documentation examples.
    FEATURE clap-rs#877: Upgrade to Unicode 14.
Bug fixes:
    BUG clap-rs#792: Fix error message rendering bug.

1.5.6 (2022-05-20)
    BUG clap-rs#680: Fixes a bug where [[:alnum:][:^ascii:]] dropped [:alnum:] from the class.
    BUG clap-rs#859: Fixes a bug where Hir::is_match_empty returned false for \b.
    BUG clap-rs#862: Fixes a bug where 'ab??' matches 'ab' instead of 'a' in 'ab'.
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.

4 participants