`coder users show` offered `-o table|json` but was the only table command without `-c/--column`, because it uses a custom key/value format. The custom format now registers `-c` and filters its rows. Column names match `users list` where they overlap: `id`, `username`, `name`, `email`, `status`, `created at`, `roles`, `organizations`. **Behavior change:** Additive. The default output is byte-for-byte unchanged. <details> <summary>Decisions</summary> - Switching to `cliui.TableFormat` would have turned the vertical key/value layout into a horizontal table, so the existing renderer is kept and filtered instead. </details> Closes [CLI-25](https://linear.app/codercom/issue/CLI-25) _This PR was generated by Coder Agents on behalf of @nickvigilante._
19 lines
517 B
Plaintext
19 lines
517 B
Plaintext
coder v0.0.0-devel
|
|
|
|
USAGE:
|
|
coder users show [flags] <username|user_id|'me'>
|
|
|
|
Show a single user. Use 'me' to indicate the currently authenticated user.
|
|
|
|
$ coder users show me
|
|
|
|
OPTIONS:
|
|
-c, --column [id|username|name|email|status|created at|roles|organizations] (default: id,username,name,email,status,created at,roles,organizations)
|
|
Columns to display in table output.
|
|
|
|
-o, --output table|json (default: table)
|
|
Output format.
|
|
|
|
———
|
|
Run `coder --help` for a list of global options.
|