summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorGabriel Gonzalez <Gabriel439@gmail.com>2019-12-13 18:19:24 -0800
committerGabriel Gonzalez <Gabriel439@gmail.com>2019-12-13 18:19:24 -0800
commit8c6a05c8c99819dbd85d555cb50596637d57df44 (patch)
tree2e933aad0b7ccfd172c1ae91bc723c92ff335b3f /lib
parent183a99734f666b6bd508f4c81e887dbc746fec69 (diff)
downloadnixpkgs-8c6a05c8c99819dbd85d555cb50596637d57df44.tar
nixpkgs-8c6a05c8c99819dbd85d555cb50596637d57df44.tar.gz
nixpkgs-8c6a05c8c99819dbd85d555cb50596637d57df44.tar.bz2
nixpkgs-8c6a05c8c99819dbd85d555cb50596637d57df44.tar.lz
nixpkgs-8c6a05c8c99819dbd85d555cb50596637d57df44.tar.xz
nixpkgs-8c6a05c8c99819dbd85d555cb50596637d57df44.tar.zst
nixpkgs-8c6a05c8c99819dbd85d555cb50596637d57df44.zip
Rename `renderOptions` to `encodeGNUCommandLine`
... as suggested by @edolstra
Diffstat (limited to 'lib')
-rw-r--r--lib/cli.nix4
-rw-r--r--lib/default.nix2
-rw-r--r--lib/tests/misc.nix2
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/cli.nix b/lib/cli.nix
index d794778b21a..23fab8ec970 100644
--- a/lib/cli.nix
+++ b/lib/cli.nix
@@ -6,10 +6,10 @@
      boilerplate related to command-line construction for simple use cases.
 
      Example:
-       renderOptions { foo = "A"; bar = 1; baz = null; qux = true; v = true; }
+       encodeGNUCommandLine { foo = "A"; bar = 1; baz = null; qux = true; v = true; }
        => " --bar '1' --foo 'A' --qux -v"
   */
-  renderOptions =
+  encodeGNUCommandLine =
     options:
       let
         render = key: value:
diff --git a/lib/default.nix b/lib/default.nix
index 5798c6bba00..a7b00f01e0d 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -121,7 +121,7 @@ let
       isOptionType mkOptionType;
     inherit (asserts)
       assertMsg assertOneOf;
-    inherit (cli) renderOptions;
+    inherit (cli) encodeGNUCommandLine;
     inherit (debug) addErrorContextToAttrs traceIf traceVal traceValFn
       traceXMLVal traceXMLValMarked traceSeq traceSeqN traceValSeq
       traceValSeqFn traceValSeqN traceValSeqNFn traceShowVal
diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix
index a5f191410e5..c0a48f472cc 100644
--- a/lib/tests/misc.nix
+++ b/lib/tests/misc.nix
@@ -443,7 +443,7 @@ runTests {
 
   testRenderOptions = {
     expr =
-       renderOptions
+       encodeGNUCommandLine
          { foo = "A";
 
            bar = 1;