PageRenderTime 1ms CodeModel.GetById 158ms app.highlight 1ms RepoModel.GetById 75ms app.codeStats 0ms

ASP.NET | 46 lines | 39 code | 7 blank | 0 comment | 26 complexity | b5a8c6597ad2d23631cb55ab2b90f44e MD5 | raw file
 1Your configuration/preferences file is searched for in the following order:
 2  * Current directory
 3  * $XDG_CONFIG_HOME/googlecl or $HOME/.config/googlecl if $XDG_CONFIG_HOME is undefined
 4  * $XDG_CONFIG_DIRS or /etc/xdg if $XDG_CONFIG_DIRS is undefined (with /googlecl appended to each directory)
 5  * ~/.googlecl (The configuration file home from v0.9.8 and earlier)
 6The file is assumed to be called "config." If no file is found, one is created. On POSIX systems, in the directory specified by the second item in the above list. On other systems, in ~/.googlecl as before. You can also specify a file with the --config option.
 81 Options
 9Each option description follows the format <name>: [<values>], <description>
111.1 All sections
12Each of these values can be found in any section. The service being run will try to find the option in its own section, and failing that, in the GENERAL section.
14  * <option>: [<string>], You can specify any option in the config file to use as a "general" case. When a command-line option is required (for example the username, or the title of an album created with Picasa), and nothing is passed in via the command line, this value will be used.
15  * cap_results: [True, False], Cap the number of results to max_results. (That is, queries will only return one feed).
16  * force_gdata_v1: [True, False] Force GoogleCL to use the code written for version 1 of the gdata API. True will disable some functionality (e.g. being able to see/manipulate arbitrary uploads to Docs), but may be required if you are unable to copy and paste the verification code in the browser. (For advanced users: This forces the import_service() function in the google script to load the "service" module even when the "client" module is available.)
17  * fields: [<field>,<field>,...] Comma-separated (no spaces) list of attributes to print out when using the 'list' task and no fields are specified on the command line. For a list of valid fields, see the README / manual.
18  * max_retries: [<integer>] Number of attempts to make for an operation that fails with a 302 "redirect" or 500 "internal" error. Set to 0 for infinite attempts.
19  * max_results: [<integer>], Maximum number of results / entries to return. Sets the max-results query parameter of the uri. You can use this with cap_results to limit the amount of data being sent over the network.
20  * regex: [True, False], Use regular expressions in matching titles.
21  * retry_delay: [<decimal>] Number of seconds to wait after an error before trying another request. See max_retries.
22  * skip_auth: [True, False], Don't check that the oauth access token read from file is actually valid. This is also a command line option, but will be set to True automatically once a valid access token is acquired and written to file.
23  * tags_prompt: [True, False], Prompt for tags for each item being uploaded. (Not fully implemented).
251.2 Picasa
26  * access: [public, private, protected], The default access level of the albums you create. Public means visible to all, private means unlisted, protected means sign-in required to view the album.
281.3 Docs
29  * xxx_format: [<extension>], The extension to use for a type of document. The types of document are document, spreadsheet, presentation, and drawing. PDF files automatically use 'pdf' as the extension
30  * xxx_editor: [<editor>], The editor to use for a type of document. The types of document are the same as the xxx_format option, plus pdf_editor in case you have a pdf editor.
31  * decode_utf_8: [True,False], When you retrieve docs from the server, you can have GoogleCL try to remove the UTF-8 byte-order marker (BOM) from the document. Most users will not need to worry about this and want to leave this as undefined or false, but it's handy if you have an application sensitive to the BOM such as `less` or `tex`.
32  * editor: [<editor>], The editor to use by default if the document type is not defined by an xxx_editor option. If this is not defined, will use the EDITOR environment variable instead.
33  * format: [<extension>], The extension to use by default if the document type is not defined by an xxx_format option.
34  * impatient_editors: [<editor1>,<editor2>...], Comma separated list of editors that will not wait for you to finish editing before exiting / returning from the command line. For example, setting this equal to "" (without the quotes) will stop GoogleCL from uploading any changes to Docs until you give it the OK.
35  * invalid_filename_character_sub: [<string>] String to replace invalid filename characters with when editing or downloading documents.  For example, if this is set to !, downloading the file "unfriendly/filename" will rename the file to "unfriendly!filename".  Note that for editing, only the temporary file's name is changed -- it should remain the same online.
371.4 Sites
38  * domain: [<domain>], sites domain for enterprise customers.
39  * site: [<site>], the site to use; useful if you only have one site, or one main site.
411.5 General
42  * auth_browser: [<browser>], Browser to launch when authenticating the OAuth request token. Set this to "disabled" or "none" to prevent the launch of any browsers.
43  * date_print_format: [<format string>], Format to use when printing date information. See the Python "time" documentation for formats ( For example: "%m %d at %H" for "<month> <day> at <hour>"
44  * default_encoding: [<encoding>], If the terminal encoding is undefined, use this encoding. Odds are, if you are having unicode/ascii decode/encode issues, you'll need to use this setting (almost always 'utf-8' for non-windows users).
45  * missing_field_value: [<string>], Placeholder string to use when listing an invalid attribute, for example, the url of a contact.
46  * url_style: [site, direct], Which sub-style to use for listing urls. "Site" will typically put you at the website, while "direct" is usually a link directly to the resource.