• hinoka@chromium.org's avatar
    Remove prompt for default project ID · d5a1ab12
    hinoka@chromium.org authored
    The "What is your project ID" has confused about every user of gsutil that I've
    talked to, and isn't even useful in the context of download_from_google_storage
    because its only good for "mb" on a bucket and "ls" without specifying a bucket,
    neither of which this version of gsutil should ever do.
    
    This CL:
    * Removes the prompt for project ID
    * Removes the 2 second delay which was meant for autolaunching a browser
      * We don't want this behavior anyways because most of our devs have multiple
        browser profiles open and they need to paste the URL into the correct profile.
    * Removes support to autolaunch a broswer.
    * Removes a lot of the extra messages.  The prompt now looks like:
    ===
    $ download_from_google_storage -g
    Please navigate your browser to the following URL:
    https://accounts.google.com/o/oauth2/auth?.....
    
    Enter the authorization code: <code>
    
    Boto config file "/usr/local/google/home/hinoka/.boto.depot_tools" created.
    $ 
    ===
    BUG=351015
    
    Review URL: https://codereview.chromium.org/222973002
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@267973 0039d316-1c4b-4281-b951-d872f2087c98
    d5a1ab12
oauth2_helper.py 3.92 KB