| Index: gslib/addlhelp/anon.py
|
| ===================================================================
|
| --- gslib/addlhelp/anon.py (revision 33376)
|
| +++ gslib/addlhelp/anon.py (working copy)
|
| @@ -1,3 +1,4 @@
|
| +# -*- coding: utf-8 -*-
|
| # Copyright 2012 Google Inc. All Rights Reserved.
|
| #
|
| # Licensed under the Apache License, Version 2.0 (the "License");
|
| @@ -11,16 +12,13 @@
|
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| # See the License for the specific language governing permissions and
|
| # limitations under the License.
|
| +"""Additional help text for anonymous access."""
|
|
|
| -from gslib.help_provider import HELP_NAME
|
| -from gslib.help_provider import HELP_NAME_ALIASES
|
| -from gslib.help_provider import HELP_ONE_LINE_SUMMARY
|
| +from __future__ import absolute_import
|
| +
|
| from gslib.help_provider import HelpProvider
|
| -from gslib.help_provider import HELP_TEXT
|
| -from gslib.help_provider import HelpType
|
| -from gslib.help_provider import HELP_TYPE
|
|
|
| -_detailed_help_text = ("""
|
| +_DETAILED_HELP_TEXT = ("""
|
| <B>OVERVIEW</B>
|
| gsutil users can access publicly readable data without obtaining
|
| credentials. For example, the gs://uspto-pair bucket contains a number
|
| @@ -40,18 +38,14 @@
|
|
|
|
|
| class CommandOptions(HelpProvider):
|
| - """Additional help about Access Control Lists."""
|
| + """Additional help text for anonymous access."""
|
|
|
| - help_spec = {
|
| - # Name of command or auxiliary help info for which this help applies.
|
| - HELP_NAME : 'anon',
|
| - # List of help name aliases.
|
| - HELP_NAME_ALIASES : ['anonymous', 'public'],
|
| - # Type of help:
|
| - HELP_TYPE : HelpType.ADDITIONAL_HELP,
|
| - # One line summary of this help.
|
| - HELP_ONE_LINE_SUMMARY :
|
| - 'Accessing Public Data Without Credentials',
|
| - # The full help text.
|
| - HELP_TEXT : _detailed_help_text,
|
| - }
|
| + # Help specification. See help_provider.py for documentation.
|
| + help_spec = HelpProvider.HelpSpec(
|
| + help_name='anon',
|
| + help_name_aliases=['anonymous', 'public'],
|
| + help_type='additional_help',
|
| + help_one_line_summary='Accessing Public Data Without Credentials',
|
| + help_text=_DETAILED_HELP_TEXT,
|
| + subcommand_help_text={},
|
| + )
|
|
|