- Notifications
You must be signed in to change notification settings - Fork1k
Commit930bbaf
authored
feat(cli): add formatting options to coder whoami (#19970)
This addresses a long-standing gripe of mine: to get your logged inusername you would have to do```bashcoder whoami | awk '{print $9}'```This allows you to do:```coder whoami -o json | jq -r '.username'```or```coder whoami -f table -c username```1 parentf290472 commit930bbaf
File tree
3 files changed
+58
-4
lines changed- cli
- testdata
- docs/reference/cli
3 files changed
+58
-4
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 |
| |
9 | 16 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
12 | 25 |
| |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
13 | 31 |
| |
14 | 32 |
| |
15 | 33 |
| |
| |||
28 | 46 |
| |
29 | 47 |
| |
30 | 48 |
| |
31 |
| - | |
32 | 49 |
| |
33 | 50 |
| |
34 | 51 |
| |
35 | 52 |
| |
36 |
| - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
37 | 63 |
| |
38 | 64 |
| |
39 | 65 |
| |
| 66 | + | |
40 | 67 |
| |
41 | 68 |
|
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
0 commit comments
Comments
(0)