From a5e7d6ff6ce21a428d482f5fc98a832e1d265411 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Fri, 22 Mar 2024 15:52:44 -0700 Subject: [PATCH] Added commands to display drive file comments --- docs/GamUpdates.md | 6 + docs/How-to-Upgrade-from-Standard-GAM.md | 4 +- docs/Other-Resources.md | 1 + docs/Users-Drive-Comments.md | 102 ++++++++++ docs/Version-and-Help.md | 12 +- docs/_Sidebar.md | 1 + docs/gam.cfg.md | 2 +- src/GamCommands.txt | 46 +++++ src/GamUpdate.txt | 6 + src/gam/__init__.py | 238 ++++++++++++++++++++++- src/gam/gamlib/glclargs.py | 2 + src/gam/gamlib/glentity.py | 4 + 12 files changed, 414 insertions(+), 10 deletions(-) create mode 100644 docs/Users-Drive-Comments.md diff --git a/docs/GamUpdates.md b/docs/GamUpdates.md index 0e1a34c4..a03c827d 100644 --- a/docs/GamUpdates.md +++ b/docs/GamUpdates.md @@ -10,6 +10,12 @@ Add the `-s` option to the end of the above commands to suppress creating the `g See [Downloads](https://github.com/taers232c/GAMADV-XTD3/wiki/Downloads) for Windows or other options, including manual installation +### 6.72.00 + +Added commands to display drive file comments. + +* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Users-Drive-Comments + ### 6.71.18 Updated `` to include `cpuinfo` and `backlightinfo`. diff --git a/docs/How-to-Upgrade-from-Standard-GAM.md b/docs/How-to-Upgrade-from-Standard-GAM.md index b79715d0..c74df07b 100644 --- a/docs/How-to-Upgrade-from-Standard-GAM.md +++ b/docs/How-to-Upgrade-from-Standard-GAM.md @@ -334,7 +334,7 @@ writes the credentials into the file oauth2.txt. admin@server:/Users/admin/bin/gamadv-xtd3$ rm -f /Users/admin/GAMConfig/oauth2.txt admin@server:/Users/admin/bin/gamadv-xtd3$ ./gam version WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found -GAMADV-XTD3 6.71.18 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.72.00 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs Python 3.12.2 64-bit final MacOS Sonoma 14.2.1 x86_64 @@ -1006,7 +1006,7 @@ writes the credentials into the file oauth2.txt. C:\GAMADV-XTD3>del C:\GAMConfig\oauth2.txt C:\GAMADV-XTD3>gam version WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found -GAMADV-XTD3 6.71.18 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.72.00 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs Python 3.12.2 64-bit final Windows-10-10.0.17134 AMD64 diff --git a/docs/Other-Resources.md b/docs/Other-Resources.md index 61f215f5..7568188a 100644 --- a/docs/Other-Resources.md +++ b/docs/Other-Resources.md @@ -6,6 +6,7 @@ Thank you. * Gabriel Clifton - https://docs.google.com/document/d/1p32QOBTr89GaG7RfCafSbFuhlUQ9r3qBM_666E0xvQM/edit * Steve Larsen - https://docs.google.com/spreadsheets/d/1MzzA-u-cmoQcJnQOovCnZcEKMjvOyFhfkdFdf10X_GI/edit +* Iain Macleod - https://docs.google.com/document/d/1QxWAPdhROcx70OXLpSD9Trh3vs-nJKSMiaMZCTwOOTg/edit?pli=1#heading=h.2a2azzpy36k0 * Kevin Melillo - https://github.com/KevinMelilloIEEE/gam-script * James Seymour - https://sites.google.com/jis.edu.bn/gam-commands/home * Amado Tejada - https://github.com/amadotejada/GAMpass diff --git a/docs/Users-Drive-Comments.md b/docs/Users-Drive-Comments.md new file mode 100644 index 00000000..3250a375 --- /dev/null +++ b/docs/Users-Drive-Comments.md @@ -0,0 +1,102 @@ +# Users - Drive - Comments +- [API documentation](#api-documentation) +- [Query documentation](Users-Drive-Query) +- [Definitions](#definitions) +- [Display file comments](#display-file-comments) + +## API documentation +* https://developers.google.com/drive/api/v3/reference/comments + +## Definitions +* [``](Drive-File-Selection) +* [``](Collections-of-Users) + +``` + ::= (.)+ + ::= @ + ::= id: + ::= || + + ::= + author.displayname| + author.emailaddress| + author.me| + author.permissionid| + author.photolink + + ::= + replies.action| + replies.author| + replies.author.| + replies.content| + replies.createddate|createdtime| + replies.deleted| + replies.htmlcontent| + replies.id| + replies.modifieddate|modifiedtime + + ::= + action| + author| + content| + | + | + createddate|createdtime| + deleted| + htmlcontent| + id| + modifieddate|modifiedtime| + quotedfilecontent| + replies| + resolved + ::= "(,)*" +``` + +## Display file comments +### Display as an indented list of keys and values. +``` +gam show filecomments + [showdeleted] [start |