id = "id" name = "id" description = "Display user and group names and numeric IDs of the calling process or a given user." executables = ["id"] [commands] format = 1 label = "Show user identity" description = "Show user and group IDs for yourself or another user. Audit (-A) and MAC label (-M) options are left out." quality = "ai-draft" base = "fig:id" 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/id.ts" license = "MIT" [[commands.field]] id = "user" label = "User" description = "Login name or user ID. Leave empty for the current user." type = "string" position = 0 sources = ["fig"] [[commands.field]] id = "full_name" label = "Full name" type = "boolean" option = ["-F"] sources = ["fig"] [[commands.field]] id = "groups" label = "All group IDs" type = "boolean" option = ["-G"] sources = ["fig"] [[commands.field]] id = "group" label = "Effective group ID" type = "boolean" option = ["-g"] sources = ["fig"] [[commands.field]] id = "uid" label = "Effective user ID" type = "boolean" option = ["-u"] sources = ["fig"] [[commands.field]] id = "names" label = "Names instead of numbers" description = "For use with the group and user ID options." type = "boolean" option = ["-n"] sources = ["fig"] [[commands.field]] id = "passwd" label = "Password file format" type = "boolean" option = ["-P"] sources = ["fig"] [[commands.field]] id = "readable" label = "Human-readable" type = "boolean" option = ["-p"] sources = ["fig"] [[commands.task]] id = "whoami" label = "Show identity" fields = ["user", "readable"] required = [] [[commands.task]] id = "group-names" label = "List group names" set = { groups = [true], names = [true] } fields = ["user"] required = [] [[commands.group]] id = "basic" label = "Basic" fields = ["user", "readable", "groups", "names"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["full_name", "group", "uid", "passwd"]