| Index: gslib/addlhelp/naming.py
|
| ===================================================================
|
| --- gslib/addlhelp/naming.py (revision 33376)
|
| +++ gslib/addlhelp/naming.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 about gsutil object and bucket naming."""
|
|
|
| -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>BUCKET NAME REQUIREMENTS</B>
|
| Google Cloud Storage has a single namespace, so you will not be allowed
|
| to create a bucket with a name already in use by another user. You can,
|
| @@ -175,15 +173,12 @@
|
| class CommandOptions(HelpProvider):
|
| """Additional help about gsutil object and bucket naming."""
|
|
|
| - help_spec = {
|
| - # Name of command or auxiliary help info for which this help applies.
|
| - HELP_NAME : 'naming',
|
| - # List of help name aliases.
|
| - HELP_NAME_ALIASES : ['domain', 'limits', 'name', 'names'],
|
| - # Type of help:
|
| - HELP_TYPE : HelpType.ADDITIONAL_HELP,
|
| - # One line summary of this help.
|
| - HELP_ONE_LINE_SUMMARY : 'Object and Bucket Naming',
|
| - # The full help text.
|
| - HELP_TEXT : _detailed_help_text,
|
| - }
|
| + # Help specification. See help_provider.py for documentation.
|
| + help_spec = HelpProvider.HelpSpec(
|
| + help_name='naming',
|
| + help_name_aliases=['domain', 'limits', 'name', 'names'],
|
| + help_type='additional_help',
|
| + help_one_line_summary='Object and Bucket Naming',
|
| + help_text=_DETAILED_HELP_TEXT,
|
| + subcommand_help_text={},
|
| + )
|
|
|