id = "lsblk" name = "lsblk" description = "List block devices." executables = ["lsblk"] platforms = ["linux"] [commands] format = 1 label = "List block devices" description = "Show block devices as a tree or list. Include/exclude by major number, dedup and sysroot options are left out." quality = "ai-draft" base = "fig:lsblk" 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/lsblk.ts" license = "MIT" [[commands.field]] id = "device" label = "Device" description = "Optional device to list, for example /dev/sda." type = "path" position = 0 path = { kind = "any", role = "input" } sources = ["fig"] [[commands.field]] id = "all" label = "Include empty devices" type = "boolean" option = ["--all", "-a"] sources = ["fig"] [[commands.field]] id = "bytes" label = "Sizes in bytes" type = "boolean" option = ["--bytes", "-b"] sources = ["fig"] [[commands.field]] id = "nodeps" label = "Hide holders and slaves" type = "boolean" option = ["--nodeps", "-d"] sources = ["fig"] [[commands.field]] id = "fs" label = "Filesystem information" type = "boolean" option = ["--fs", "-f"] sources = ["fig"] [[commands.field]] id = "json" label = "JSON output" type = "boolean" option = ["--json", "-J"] sources = ["fig"] [[commands.field]] id = "list" label = "List instead of tree" type = "boolean" option = ["--list", "-l"] sources = ["fig"] [[commands.field]] id = "noheadings" label = "No header line" type = "boolean" option = ["--noheadings", "-n"] sources = ["fig"] [[commands.field]] id = "perms" label = "Owner, group and mode" type = "boolean" option = ["--perms", "-m"] sources = ["fig"] [[commands.field]] id = "topology" label = "Topology information" type = "boolean" option = ["--topology", "-t"] sources = ["fig"] [[commands.field]] id = "output" label = "Output columns" description = "Comma-separated column names, for example NAME,SIZE,TYPE." type = "string" option = ["--output", "-o"] sources = ["fig"] [[commands.task]] id = "filesystems" label = "Filesystems overview" fields = ["device", "fs"] set = { fs = [true] } [[commands.task]] id = "json" label = "JSON listing" fields = ["device", "json", "output"] set = { json = [true] } [[commands.group]] id = "basic" label = "Basic" fields = ["device", "fs", "json", "list", "output"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["nodeps", "noheadings", "perms", "topology", "bytes", "all"]