Unverified Commit 793ed729 authored by Johannes Kirschbauer's avatar Johannes Kirschbauer
Browse files

doc: add arguments for toKeyValue

parent 8ee634f5
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
@@ -155,8 +155,20 @@ in rec {

  /**
    Generate a key-value-style config file from an attrset.
    *
    * mkKeyValue is the same as in toINI.

    # Inputs

    Structured function argument

    : mkKeyValue (optional, default: `mkKeyValueDefault {} "="`)
      : format a setting line from key and value

    : listsAsDuplicateKeys (optional, default: `false`)
      : allow lists as values for duplicate keys

    : indent (optional, default: `""`)
      : Initial indentation level

  */
  toKeyValue = {
    mkKeyValue ? mkKeyValueDefault {} "=",