/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/zsh_completion/zshcomp.py

  • Committer: Jelmer Vernooij
  • Date: 2020-07-05 12:50:01 UTC
  • mfrom: (7490.40.46 work)
  • mto: (7490.40.48 work)
  • mto: This revision was merged to the branch mainline in revision 7519.
  • Revision ID: jelmer@jelmer.uk-20200705125001-7s3vo0p55szbbws7
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# along with this program; if not, write to the Free Software
17
17
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 
 
19
from __future__ import absolute_import
 
20
 
19
21
from ... import (
20
22
    cmdline,
21
23
    commands,
24
26
    option,
25
27
    plugin,
26
28
)
 
29
from ...sixish import (
 
30
    text_type,
 
31
    )
27
32
import breezy
28
33
import re
29
34
import sys
261
266
    """
262
267
 
263
268
    takes_options = [
264
 
        option.Option("function-name", short_name="f", type=str, argname="name",
 
269
        option.Option("function-name", short_name="f", type=text_type, argname="name",
265
270
                      help="Name of the generated function (default: _brz)"),
266
271
        option.Option("debug", type=None, hidden=True,
267
272
                      help="Enable shell code useful for debugging"),
268
 
        option.ListOption("plugin", type=str, argname="name",
 
273
        option.ListOption("plugin", type=text_type, argname="name",
269
274
                          # param_name="selected_plugins", # doesn't work, bug #387117
270
275
                          help="Enable completions for the selected plugin"
271
276
                          + " (default: all plugins)"),