PageRenderTime 109ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/README.new-usage

http://googlecl.googlecode.com/
Unknown | 55 lines | 47 code | 8 blank | 0 comment | 0 complexity | 6f26c3f9143a1dd847370776ab0b9923 MD5 | raw file
  1. This document is a quick-guide on getting up to speed with the new version of GoogleCL.
  2. version 0.9.14
  3. * Bugfixes
  4. * Added support for Discovery API.
  5. * Docs list, edit, upload, get all work for me now with python gdata 2.0.12 through 2.0.17.
  6. version 0.9.13
  7. * Bugfixes only. Booooooring.
  8. version 0.9.12
  9. * --access will take a variety of text to set access levels on the following items during creation:
  10. Blogger posts
  11. Picasa albums
  12. YouTube videos
  13. Some example text that should work: public, private, draft, unlisted, link only. --draft will still be honored for Blogger.
  14. * --date takes way, way more that just YYYY-MM-DD format. See the README and example scripts for a detailed list.
  15. * --photo will act like a "--title for photos" for Picasa, allowing you to list, get, delete, or tag only certain photos.
  16. * --summary can be given to picasa tag and post, to change the captions of photos being modified by those commands.
  17. * Got rid of the following config file options: tags_prompt, delete_by_default, delete_prompt. Essentially, tags_prompt is now always False, and delete_by_default is always False (the default values for these options). delete_prompt was obsoleted by the command line argument --yes, which will answer "yes" to all "are you sure" deletion prompts.
  18. * url-download is now a list field for picasa photos.
  19. * You can disable automatic launching of the browser during authentication be setting auth_browser to "disabled" in the config file.
  20. * Input can be piped into GoogleCL by inserting a "_" or "__" as a command line argument. "_" will take characters sitting on stdin and treat them as a single argument, not expanding or splitting the string. "__" will split the data. For example:
  21. $ echo "These are my files" > list.txt
  22. Entering
  23. $ cat list.txt | google docs upload __
  24. is equivalent to
  25. $ google docs upload These are my files
  26. while
  27. $ cat list.txt | google docs upload _
  28. is equivalent to
  29. $ google docs upload "These are my files"
  30. (Note that the echo command will actually produce a newline that will be at the end of 'files' -- this is just a quick example)
  31. You can pipe data directly to options as well, but only as single arguments. For example,
  32. $ cat file | google docs upload --title __
  33. Will set the title to "__" and ignore the value from "cat file"
  34. version 0.9.11
  35. * --force-auth and --skip-auth will let you specify if GoogleCL should verify the oauth access token it has on file for the service being used. After the first valid access token retrieved, --skip-auth is set in your config file as True. You can set this value to False to force a validation step on every run. The validation step is an authenticated request to Google to retrieve a small amount of data -- removing this step can yield a significant decrease in execution time for slow connections.
  36. * 'list_fields' has been shortened to 'fields' in the config file, and the --fields option is introduced. Thanks to the "read required options from the argument list" ability also introduced in this version, your old scripts should be alright without specifying --fields. You can also change the XXX_fields entries in the config file to just fields.
  37. * --src and --dest options were added. Conceptually, --src indicates data being transmitted to Google and --dest is where you want to put data received from Google. They mostly replaced command line arguments that were flapping in the wind (i.e. not associated with a command line option, and had an "arguments description" in the --help output).This seems like a pain in the neck, but read the next point where we introduce...
  38. * Positional autofill for command line arguments! Read the --help output or man page, but in a nutshell, GoogleCL will figure out what argument corresponds to which option based on the order of the arguments and what the configuration file has specified. You should notice significantly less wear and tear on your hyphen key.
  39. * Multiple arguments can be given to options.src and options.title by just sticking them on the command line. This should flow naturally with the "positional autofill" mentioned above. For example:
  40. $ google contacts list huey dewy louie
  41. will list all of your obnoxious nephews.
  42. * Picasa got a whole mess of new list fields: distance, ev, exposure (aka shutter, speed), flash, focallength, fstop, imageUniqueID (aka ia), iso, make, model, time (aka when).
  43. version 0.9.10
  44. * List "styles" have been renamed to list "fields". If you have a custom list_style entry in your config file, rename it to list_fields to make it work again.
  45. * v2 and v3 support for gdata for the average user means that you can now see and download non-converted files that you've uploaded through the web interface, and list more details about your contacts. See the README section on the list task.
  46. * Config file option force_gdata_v1 lets you use the older versions in the library written for Docs and Contacts. The primary purpose of this option is to avoid copying and pasting a verification code from the browser into GoogleCL. It means that you won't benefit from any v2 / v3 upgrades to GoogleCL like the ones mentioned before.
  47. * Started following the XDG Base Directory Specification (http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html). GoogleCL will still look for config files and access tokens in the old directory (~/.googlecl), but may not in the future.