| Commit message (Expand) | Author | Age | Files | Lines |
| * | treewide: format all inactive Nix files•••After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
--argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
result/bin/apply-formatting $NIXPKGS_PATH
| Silvan Mosberger | 2024-12-10 | 1 | -29/+29 |
| * | cli.nix: improve documentation, including arguments | Rob Pilling | 2024-05-30 | 1 | -36/+71 |
| * | cli.nix: permit separators between args -> `-a=b`, `--xyz=abc`, etc | Rob Pilling | 2024-05-22 | 1 | -1/+10 |
| * | doc: migrate lib.cli to use doc-comments | Johannes Kirschbauer | 2024-03-22 | 1 | -33/+54 |
| * | lib/cli: mkKey -> mkOptionName, use generators.mkValueStringDefault•••Let’s call them by what they are, option names.
`generators.mkValueStringDefault` is a better value string renderer
than plain `toString`.
Also add docs to all options.
| Profpatsch | 2020-01-23 | 1 | -11/+25 |
| * | lib/cli: rename `renderX` options to `mkX`•••Mirrors the naming scheme in `generators.nix`, for consistency.
Also rename `key` to `k` and value to `v` to aid readability to the
code structure.
| Profpatsch | 2020-01-23 | 1 | -17/+14 |
| * | lib/cli,lib/tests/misc: somewhat more standard formatting | Profpatsch | 2020-01-23 | 1 | -41/+35 |
| * | lib/cli: encodeGNUCommandLine -> toGNUCommandLineShell•••The semantic difference between `encode` and `to` is not apparent.
Users are likely to confuse both functions (which leads to unexpected
error messages about the wrong types). Like in `generators.nix`, all
functions should be prefixed by `to`.
Furthermore, converting to a string depends on the target context. In
this case, it’s a POSIX shell, so we should name it that (compare
`escapeShellArg` in `strings.nix`).
We can later add versions that escape for embedding in e.g. python
scripts or similar.
| Profpatsch | 2020-01-23 | 1 | -2/+24 |
| * | Factor out a `toGNUCommandLine` utility•••... as suggested by @roberth
| Gabriel Gonzalez | 2020-01-05 | 1 | -7/+11 |
| * | 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
| Gabriel Gonzalez | 2019-12-15 | 1 | -3/+18 |
| * | Make behavior of `encodeGNUCommandLine` customizable•••... based on feedback from @edolstra
| Gabriel Gonzalez | 2019-12-13 | 1 | -13/+17 |
| * | Rename `renderOptions` to `encodeGNUCommandLine`•••... as suggested by @edolstra
| Gabriel Gonzalez | 2019-12-13 | 1 | -2/+2 |
| * | 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
| Gabriel Gonzalez | 2019-12-11 | 1 | -0/+33 |