id = "trash" name = "trash" description = "Command-line tool that moves files and folders to the macOS Trash." executables = ["trash"] platforms = ["macos"] [commands] format = 1 label = "Move to Trash" description = "Move items to the Trash, list the Trash, or empty it. Empty requires the destructive flag and is off by default." quality = "ai-draft" base = "fig:trash" 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/trash.ts" license = "MIT" [[commands.field]] id = "items" label = "Items to trash" type = "path" position = 0 multiple = true path = { kind = "any", role = "input" } sources = ["fig"] [[commands.field]] id = "verbose" label = "Verbose output" type = "boolean" option = ["-v"] sources = ["fig"] [[commands.field]] id = "finder" label = "Use Finder API" description = "Move items via Finder so Put Back works." type = "boolean" option = ["-F"] sources = ["fig"] [[commands.field]] id = "list" label = "List Trash contents" type = "boolean" option = ["-l"] sources = ["fig"] [[commands.field]] id = "empty" label = "Empty the Trash" type = "boolean" option = ["-e"] effect = "delete" sources = ["fig"] [[commands.field]] id = "yes" label = "Skip confirmation" description = "Skips the prompt for -e and -s; permanent and immediate." type = "boolean" option = ["-y"] effect = "delete" sources = ["fig"] [[commands.task]] id = "trash" label = "Move items to Trash" fields = ["items", "verbose", "finder"] required = ["items"] [[commands.task]] id = "list" label = "List Trash" set = { list = [true] } fields = ["list"] required = [] [[commands.group]] id = "basic" label = "Basic" fields = ["items", "verbose", "finder"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["list", "empty", "yes"]