id = "find" name = "find" description = "Walk a file hierarchy." executables = ["find"] [commands] format = 1 label = "Find files" description = "Search directory trees. Enter start paths followed by the expression (e.g. -name '*.rs' -type f)." quality = "ai-draft" base = "fig:find" 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/find.ts" license = "MIT" [[commands.field]] id = "words" label = "Paths and expression" description = "Start directories first, then primaries such as -name or -type." type = "string" position = 0 multiple = true sources = ["fig"] [[commands.field]] id = "follow" label = "Follow symbolic links" type = "boolean" option = ["-L"] sources = ["fig"] [[commands.field]] id = "xdev" label = "Stay on one filesystem" type = "boolean" option = ["-x"] sources = ["fig"] [[commands.field]] id = "depth_first" label = "Depth-first traversal" type = "boolean" option = ["-d"] sources = ["fig"] [[commands.field]] id = "sorted" label = "Lexicographical order" type = "boolean" option = ["-s"] sources = ["fig"] [[commands.task]] id = "find" label = "Find" fields = ["words", "follow", "xdev"] required = [] [[commands.group]] id = "basic" label = "Basic" fields = ["words", "follow", "xdev"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["depth_first", "sorted"]