id = "pkill" name = "pkill" description = "Signal processes based on name and other attributes." executables = ["pkill"] platforms = ["macos", "linux"] [commands] format = 1 label = "Signal processes" description = "Send a signal (SIGTERM by default) to processes matching a pattern. --signal is a procps (Linux) spelling; BSD pkill uses -SIGNAL instead." quality = "ai-draft" base = "fig:pkill" 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/pkill.ts" license = "MIT" [[commands.field]] id = "pattern" label = "Pattern" description = "Extended regular expression matched against process names." type = "string" position = 0 sources = ["fig"] [[commands.field]] id = "signal" label = "Signal" type = "string" option = ["--signal"] sources = ["fig"] [[commands.field]] id = "full" label = "Match full command line" type = "boolean" option = ["-f"] sources = ["fig"] [[commands.field]] id = "exact" label = "Match exact name" type = "boolean" option = ["-x"] sources = ["fig"] [[commands.field]] id = "ignore_case" label = "Ignore case" type = "boolean" option = ["-i"] sources = ["fig"] [[commands.field]] id = "newest" label = "Newest only" type = "boolean" option = ["-n"] sources = ["fig"] [[commands.field]] id = "oldest" label = "Oldest only" type = "boolean" option = ["-o"] sources = ["fig"] [[commands.field]] id = "user" label = "Effective user" type = "string" option = ["-u"] sources = ["fig"] [[commands.task]] id = "by_name" label = "Terminate by name" fields = ["pattern", "exact"] required = ["pattern"] [[commands.group]] id = "basic" label = "Basic" fields = ["pattern", "signal", "full", "exact", "ignore_case", "newest", "oldest"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["user"]