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

feat: Allow users to render usage, help, and errors with ANSI #4248

Merged
merged 4 commits into from Sep 22, 2022

Commits on Sep 22, 2022

  1. fix(help)!: Provide styled usage to user

    This will open us up to providing the user with access to the styled
    version in the future.
    epage committed Sep 22, 2022
    Copy the full SHA
    652e71d View commit details
    Browse the repository at this point in the history
  2. fix(help): Replace help writers with renderers

    The writer is less convenient and isn't offering any performance
    benefits of avoidign the extra allocations, so let's render instead.
    
    This supersedes clap-rs#3874
    
    Fixes clap-rs#3873
    epage committed Sep 22, 2022
    Copy the full SHA
    4280fdf View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    a2272a2 View commit details
    Browse the repository at this point in the history
  4. feat: Expose ANSI styling to the user

    This gives users the control over where clap outputs while still getting
    colors.  For users who want to support old windows versions, check out
    `fwdansi` crate.
    epage committed Sep 22, 2022
    Copy the full SHA
    037b075 View commit details
    Browse the repository at this point in the history