As in https://github.com/jay0lee/GAM/pull/313, factor in the user's
environment variables. On a new installation, the files will be in GAM
Path, but on an existing installation the environment variables may
have them located somewhere else.
* Code fixes, cleanup
Fix doCheckServiceAccount to pass correct api to buildGAPIServiceObject
pylint cleanup
Simplify passing login_hint to doRequestOAuth in main
Give error if invalid argument after gam <users> check
* Fix error
* Use try accept
The environment variables GAMUSERCONFIGDIR and CLIENTSECRETS are
factored in to GC_Values[GC_CLIENT_SECRETS_JSON]. On a new
installation, it will have the value
os.path.join(GM_Globals[GM_GAM_PATH], FN_CLIENT_SECRETS_JSON) but on an
existing installation the environment variables may have it located
somewhere else.
* Fix doGamVersion
doGamVersion is called by showUsage with checkForArgs=False to keep
doGamVersion from wandering through some other command’s arguments
* Update documentation
* Further doGamVersion cleanup
Allow simple and check, keep pylint happy
* gam version simple is script only option, not exposed to user
show filetree shows all files
show filelist shows owned files
This change makes them both show owned files by default. The anyowner
argument makes either command show all files
* Use string version rather than float; add check to gam version
This lets you have 3.72.0 or 3.72a; current scheme continues to work as
well.
Handle bad data in lastupdatecheck.txt
$ gam version check
GAM 3.72 - http://git.io/gam
Jay Lee <jay0lee@gmail.com>
Python 2.7.12 64-bit final
google-api-python-client 1.5.2
Darwin-15.6.0-x86_64-i386-64bit x86_64
Path: /Users/admin/Documents/GoogleApps/GAM
Version: Check, Current: 3.72, Latest: 3.71
$
Note that latest version at appspot is behind
* Don't allow check argument from showUsage
Drop Google+ in name to id direction, transfers no longer supported
Keep Google+ in id to name direction for printing old transfers
Show real app name to user
Don't bail on unknown app ID from Google, keep going by using
'applicationId: ####' as name
* gam user foo signature should set signature on primary address for backwards compatability
gam user foo show signature already does this
* Simply signature/show signature, don't loop to get primary