id = "dirname" name = "dirname" description = "Print the directory portion of a pathname." executables = ["dirname"] [commands] format = 1 label = "Directory part of a path" description = "Strips the last path component from each name." quality = "ai-draft" base = "fig:dirname" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/dirname.ts" license = "MIT" [[commands.field]] id = "names" label = "Path" type = "string" position = 0 multiple = true sources = ["fig"] [[commands.task]] id = "dirname" label = "Strip last component" fields = ["names"] required = ["names"] [[commands.group]] id = "basic" label = "Basic" fields = ["names"]