1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00
nixpkgs/lib
Profpatsch 582354d3b6 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.
2020-01-23 14:47:38 +01:00
..
systems Merge remote-tracking branch 'origin/master' into ios-with-xcode-11 2020-01-03 15:34:20 -05:00
tests lib/cli: encodeGNUCommandLine -> toGNUCommandLineShell 2020-01-23 14:47:38 +01:00
asserts.nix
attrsets.nix lib/attrsets: Fix error in comment for getAttrFromPath 2020-01-20 22:42:38 +01:00
cli.nix lib/cli: encodeGNUCommandLine -> toGNUCommandLineShell 2020-01-23 14:47:38 +01:00
customisation.nix Merge pull request #67809 from Infinisil/propagate-override-args 2019-10-22 14:37:40 +02:00
debug.nix
default.nix lib/cli: unexport symbols & sort with generators 2020-01-23 14:47:38 +01:00
deprecated.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
fetchers.nix
filesystem.nix
fixed-points.nix lib.converge: optimise 2019-04-17 15:55:57 +01:00
generators.nix treewide: Remove usage of isNull 2019-04-29 14:05:50 +02:00
kernel.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
licenses.nix Notion custom license: exclude 2020-01-17 08:31:22 -03:00
lists.nix Merge master into staging-next 2019-09-06 22:46:05 +02:00
meta.nix lib: implement setPrio 2018-11-22 08:59:48 +00:00
minver.nix
modules.nix nixos/lib: Inherit type for doRename options 2020-01-20 22:06:20 +01:00
options.nix lib/options: fix path in comment 2019-08-26 02:01:49 +02:00
sources.nix lib.commitIdFromGitRepo: fix support for git-submodule 2020-01-14 21:08:38 +01:00
strings-with-deps.nix
strings.nix lib: Add getName to mirror getVersion 2019-11-24 16:24:50 +00:00
trivial.nix lib.commitIdFromGitRepo: support git-worktree 2020-01-10 22:29:48 +01:00
types.nix Replace short URL from #63103 with full URL. 2020-01-15 13:47:49 +00:00
versions.nix lib/versions: expose splitVersion 2019-09-26 17:42:42 +02:00
zip-int-bits.nix