From 64ed92692ad679d9b6a793095a66ecb08f9bab77 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Fri, 12 Jan 2024 21:53:12 -0800 Subject: [PATCH] Added option `showitemcountonly` to various commands --- docs/ChromeOS-Devices.md | 11 +- docs/Classroom-Courses.md | 10 ++ docs/Classroom-Membership.md | 10 ++ docs/Cloud-Identity-Devices.md | 20 ++++ docs/Cloud-Identity-Groups.md | 12 ++ docs/GamUpdates.md | 17 +++ docs/Groups.md | 12 ++ docs/How-to-Upgrade-from-Standard-GAM.md | 4 +- docs/Mobile-Devices.md | 8 ++ docs/Organizational-Units.md | 9 ++ docs/Resources.md | 9 ++ docs/Users-Gmail-Messages-Threads.md | 1 + docs/Users.md | 12 +- docs/Version-and-Help.md | 12 +- src/GamCommands.txt | 18 ++- src/GamUpdate.txt | 17 +++ src/gam/__init__.py | 141 ++++++++++++++++++++++- 17 files changed, 303 insertions(+), 20 deletions(-) diff --git a/docs/ChromeOS-Devices.md b/docs/ChromeOS-Devices.md index 353c9261..a9ac66c3 100644 --- a/docs/ChromeOS-Devices.md +++ b/docs/ChromeOS-Devices.md @@ -23,7 +23,7 @@ - [Print a header row and fields for selected CrOS devices](#print-a-header-row-and-fields-for-selected-cros-devices) - [Print a header row and fields for specified CrOS devices](#print-a-header-row-and-fields-for-specified-cros-devices) - [Display Examples](#display-examples) - - [Display CrOS device count](#display-cros-device-count) + - [Display CrOS device counts](#display-cros-device-counts) - [Print ChromeOS device activity](#print-chromeos-device-activity) - [Print a header row and activity for selected CrOS devices](#print-a-header-row-and-activity-for-selected-cros-devices) - [Print a header row and activity for specified CrOS devices](#print-a-header-row-and-activity-for-specified-cros-devices) @@ -683,10 +683,17 @@ Print information about CrOS devices synced between 45 days ago and 30 days ago: gam print cros query "sync:#querytime1#..#querytime2#" querytime1 -45d querytime2 -30d ``` -## Display CrOS device count +## Display CrOS device counts Display the number of CrOS devices in an entity. ``` gam show count +gam print cros showitemcountonly +gam print cros select showitemcountonly +gam print cros + [(query )|(queries ) [querytime