{
  "id": "mkinitcpio",
  "name": "mkinitcpio",
  "description": "Create an initial ramdisk environment.",
  "platforms": [
    "linux"
  ],
  "executables": [
    "mkinitcpio"
  ],
  "commands": {
    "format": 1,
    "label": "Build initramfs",
    "description": "Build initramfs images from presets or generate one image for a kernel. UEFI executable options are left out.",
    "quality": "ai-draft",
    "base": "fig:mkinitcpio",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/mkinitcpio.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "preset",
        "label": "Preset",
        "description": "Build image(s) according to this preset, for example linux.",
        "type": "string",
        "option": [
          "--preset",
          "-p"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "allpresets",
        "label": "All presets",
        "description": "Process all presets in /etc/mkinitcpio.d.",
        "type": "boolean",
        "option": [
          "--allpresets",
          "-P"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "kernel",
        "label": "Kernel version",
        "type": "string",
        "option": [
          "--kernel",
          "-k"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "generate",
        "label": "Output image",
        "description": "Generate a CPIO image as this file.",
        "type": "path",
        "option": [
          "--generate",
          "-g"
        ],
        "path": {
          "kind": "file",
          "role": "output"
        },
        "effect": "overwrite",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "config",
        "label": "Config file",
        "type": "path",
        "option": [
          "--config",
          "-c"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "compress",
        "label": "Compression program",
        "type": "string",
        "option": [
          "--compress",
          "-z"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "listhooks",
        "label": "List hooks",
        "type": "boolean",
        "option": [
          "--listhooks",
          "-L"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "automods",
        "label": "Show autodetected modules",
        "type": "boolean",
        "option": [
          "--automods",
          "-M"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "nocolor",
        "label": "No color",
        "type": "boolean",
        "option": [
          "--nocolor",
          "-n"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "verbose",
        "label": "Verbose",
        "type": "boolean",
        "option": [
          "--verbose",
          "-v"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "all-presets",
        "label": "Rebuild all presets",
        "set": {
          "allpresets": [
            true
          ]
        },
        "lock": [
          "allpresets"
        ],
        "fields": [
          "allpresets",
          "verbose"
        ]
      },
      {
        "id": "one-preset",
        "label": "Rebuild one preset",
        "fields": [
          "preset",
          "verbose"
        ],
        "required": [
          "preset"
        ]
      },
      {
        "id": "list-hooks",
        "label": "List hooks",
        "set": {
          "listhooks": [
            true
          ]
        },
        "lock": [
          "listhooks"
        ],
        "fields": [
          "listhooks"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "preset",
          "allpresets",
          "kernel",
          "generate",
          "listhooks"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "config",
          "compress",
          "automods",
          "nocolor",
          "verbose"
        ]
      }
    ]
  }
}
