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

Add pkgs.lib.encodeGNUCommandLine #75539

Merged
merged 6 commits into from Jan 14, 2020

Commits on Dec 12, 2019

  1. Add pkgs.lib.renderOptions

    This adds a new utility to intelligently convert Nix records to
    command line options to reduce boilerplate for simple use cases and to
    also reduce the likelihood of malformed command lines
    Gabriella439 committed Dec 12, 2019
    Copy the full SHA
    183a997 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2019

  1. Rename renderOptions to encodeGNUCommandLine

    ... as suggested by @edolstra
    Gabriella439 committed Dec 14, 2019
    Copy the full SHA
    8c6a05c View commit details
    Browse the repository at this point in the history
  2. Make behavior of encodeGNUCommandLine customizable

    ... based on feedback from @edolstra
    Gabriella439 committed Dec 14, 2019
    Copy the full SHA
    693096d View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2019

  1. Use a more realistic example that exercises all encodings

    ... as suggested by @roberth
    
    This also caught a bug in rendering lists, which this change also fixes
    Gabriella439 committed Dec 15, 2019
    Copy the full SHA
    5edd4dd View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2020

  1. Factor out a toGNUCommandLine utility

    ... as suggested by @roberth
    Gabriella439 committed Jan 5, 2020
    Copy the full SHA
    6d584c2 View commit details
    Browse the repository at this point in the history
  2. Export toGNUCommandLine

    ... as suggested by @roberth
    
    Co-Authored-By: Robert Hensing <roberth@users.noreply.github.com>
    Gabriella439 and roberth committed Jan 5, 2020
    Copy the full SHA
    a46679f View commit details
    Browse the repository at this point in the history