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 } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/mkinitcpio.ts" license = "MIT" [[commands.field]] id = "preset" label = "Preset" description = "Build image(s) according to this preset, for example linux." type = "string" option = ["--preset", "-p"] sources = ["fig"] [[commands.field]] id = "allpresets" label = "All presets" description = "Process all presets in /etc/mkinitcpio.d." type = "boolean" option = ["--allpresets", "-P"] sources = ["fig"] [[commands.field]] id = "kernel" label = "Kernel version" type = "string" option = ["--kernel", "-k"] sources = ["fig"] [[commands.field]] 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"] [[commands.field]] id = "config" label = "Config file" type = "path" option = ["--config", "-c"] path = { kind = "file", role = "input" } sources = ["fig"] [[commands.field]] id = "compress" label = "Compression program" type = "string" option = ["--compress", "-z"] sources = ["fig"] [[commands.field]] id = "listhooks" label = "List hooks" type = "boolean" option = ["--listhooks", "-L"] sources = ["fig"] [[commands.field]] id = "automods" label = "Show autodetected modules" type = "boolean" option = ["--automods", "-M"] sources = ["fig"] [[commands.field]] id = "nocolor" label = "No color" type = "boolean" option = ["--nocolor", "-n"] sources = ["fig"] [[commands.field]] id = "verbose" label = "Verbose" type = "boolean" option = ["--verbose", "-v"] sources = ["fig"] [[commands.task]] id = "all-presets" label = "Rebuild all presets" set = { allpresets = [true] } lock = ["allpresets"] fields = ["allpresets", "verbose"] [[commands.task]] id = "one-preset" label = "Rebuild one preset" fields = ["preset", "verbose"] required = ["preset"] [[commands.task]] id = "list-hooks" label = "List hooks" set = { listhooks = [true] } lock = ["listhooks"] fields = ["listhooks"] [[commands.group]] id = "basic" label = "Basic" fields = ["preset", "allpresets", "kernel", "generate", "listhooks"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["config", "compress", "automods", "nocolor", "verbose"]