id = "du" name = "du" description = "Estimate file space usage of files and directories." executables = ["du"] [commands] format = 1 label = "Disk usage" description = "Show disk usage for files and directories. Only the macOS/BSD flags in the completion data are offered." quality = "ai-draft" base = "fig:du" parser = { end_of_options = "--", interleave = "permute", long_equals = false, short_attached = true, short_bundles = true } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/du.ts" license = "MIT" [[commands.field]] id = "paths" label = "Files or directories" type = "path" path = { kind = "any", role = "input" } position = 0 multiple = true sources = ["fig"] [[commands.field]] id = "human" label = "Human-readable sizes" type = "boolean" option = ["-h"] sources = ["fig"] [[commands.field]] id = "summary" label = "Summary only" description = "One entry per argument (same as depth 0)." type = "boolean" option = ["-s"] sources = ["fig"] [[commands.field]] id = "all" label = "Include files" type = "boolean" option = ["-a"] sources = ["fig"] [[commands.field]] id = "total" label = "Grand total" type = "boolean" option = ["-c"] sources = ["fig"] [[commands.field]] id = "depth" label = "Depth" description = "Show entries this many directories deep." type = "integer" option = ["-d"] sources = ["fig"] [[commands.field]] id = "follow_all" label = "Follow all symlinks" type = "boolean" option = ["-L"] sources = ["fig"] [[commands.field]] id = "ignore" label = "Ignore mask" type = "string" option = ["-I"] multiple = true sources = ["fig"] [[commands.task]] id = "summary" label = "Size of each item" fields = ["paths", "human", "summary"] required = ["paths"] set = { human = [true], summary = [true] } [[commands.task]] id = "tree" label = "Sizes one level deep" fields = ["paths", "human", "depth", "total"] required = ["paths"] set = { human = [true], depth = [1] } [[commands.group]] id = "basic" label = "Basic" fields = ["paths", "human", "summary", "depth", "total"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["all", "follow_all", "ignore"]