Cleaned up Getting/Got messages for gam print courses|course-participants.

This commit is contained in:
Ross Scroggs
2024-01-13 17:18:45 -08:00
parent 64ed92692a
commit cc50ae28cd
15 changed files with 225 additions and 18 deletions

View File

@@ -575,3 +575,20 @@ gam print groups
[admincreatedmatch <Boolean>]
showitemcountonly
```
Example
```
$ gam print groups showitemcountonly
Getting all Groups, may take some time on a large Google Workspace Account...
Got 200 Groups: 1aparents@domain.com - students-genderfood@domain.com
Got 238 Groups: students-worldculture@domain.com - xcarestaff@domain.com
238
```
The `Getting` and `Got` messages are written to stderr, the count is writtem to stdout.
To retrieve the count with `showitemcountonly`:
```
Linux/MacOS
count=$(gam print groups showitemcountonly)
Windows PowerShell
count = & gam print groups showitemcountonly
```