id = "ps" name = "ps" description = "Report a snapshot of the current processes." executables = ["ps"] [commands] format = 1 label = "List processes" description = "Print a snapshot of running processes. Only options common to BSD and procps ps are offered; Linux-only options such as --forest and --sort are left out." quality = "ai-draft" base = "fig:ps" 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/ps.ts" license = "MIT" [[commands.field]] id = "all" label = "All processes" type = "boolean" option = ["-A", "-e"] sources = ["fig"] [[commands.field]] id = "full" label = "Full-format listing" type = "boolean" option = ["-f"] sources = ["fig"] [[commands.field]] id = "long" label = "Long format" type = "boolean" option = ["-l"] sources = ["fig"] [[commands.field]] id = "user" label = "Effective user" description = "User ID or name." type = "string" option = ["-u"] sources = ["fig"] [[commands.field]] id = "ruser" label = "Real user" description = "Real user ID or name." type = "string" option = ["-U"] sources = ["fig"] [[commands.field]] id = "format" label = "Output columns" description = "Comma-separated column names, for example pid,ppid,comm." type = "string" option = ["-o"] suggestions = [{ value = "pid,ppid,comm", label = "pid, ppid, comm" }, { value = "pid,%cpu,%mem,comm", label = "pid, cpu, mem, comm" }] sources = ["fig"] [[commands.task]] id = "everything" label = "All processes, full format" set = { all = [true], full = [true] } fields = ["all", "full", "format"] required = [] [[commands.task]] id = "by-user" label = "Processes of a user" fields = ["user", "full", "format"] required = ["user"] [[commands.group]] id = "basic" label = "Basic" fields = ["all", "full", "long", "user"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["ruser", "format"]