id = "stat" name = "stat" description = "Display file status." executables = ["stat"] platforms = ["macos"] [commands] format = 1 label = "Show file status" description = "Display information about files. BSD/macOS stat flags." quality = "ai-draft" base = "fig:stat" 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/stat.ts" license = "MIT" [[commands.field]] id = "files" label = "Files" type = "path" position = 0 multiple = true path = { kind = "any", role = "input" } sources = ["fig"] [[commands.field]] id = "follow" label = "Follow symlinks" type = "boolean" option = ["-L"] sources = ["fig"] [[commands.field]] id = "ls" label = "ls -lT format" type = "boolean" option = ["-l"] sources = ["fig"] [[commands.field]] id = "verbose" label = "Verbose (Linux-style) output" type = "boolean" option = ["-x"] sources = ["fig"] [[commands.field]] id = "raw" label = "Raw numeric values" type = "boolean" option = ["-r"] sources = ["fig"] [[commands.field]] id = "shell" label = "Shell variable format" type = "boolean" option = ["-s"] sources = ["fig"] [[commands.field]] id = "format" label = "Output format" description = "printf-like format starting with %." type = "string" option = ["-f"] sources = ["fig"] [[commands.field]] id = "timefmt" label = "Time format" description = "strftime(3) format." type = "string" option = ["-t"] sources = ["fig"] [[commands.field]] id = "quiet" label = "Suppress errors" type = "boolean" option = ["-q"] sources = ["fig"] [[commands.field]] id = "nonl" label = "No trailing newline" type = "boolean" option = ["-n"] sources = ["fig"] [[commands.field]] id = "type_suffix" label = "Type suffix characters" type = "boolean" option = ["-F"] sources = ["fig"] [[commands.task]] id = "show" label = "Show status" fields = ["files", "follow", "verbose"] required = ["files"] [[commands.task]] id = "format" label = "Custom format" fields = ["files", "format", "follow"] required = ["files", "format"] [[commands.group]] id = "basic" label = "Basic" fields = ["files", "follow", "verbose", "ls", "format", "raw", "shell"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["timefmt", "quiet", "nonl", "type_suffix"]