/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/bash_completion/bashcomp.py

  • Committer: Jelmer Vernooij
  • Date: 2019-03-05 07:32:38 UTC
  • mto: (7290.1.21 work)
  • mto: This revision was merged to the branch mainline in revision 7311.
  • Revision ID: jelmer@jelmer.uk-20190305073238-zlqn981opwnqsmzi
Add appveyor configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python3
 
1
#!/usr/bin/env python
2
2
 
3
3
# Copyright (C) 2009, 2010 Canonical Ltd
4
4
#
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
423
428
    """
424
429
 
425
430
    takes_options = [
426
 
        option.Option("function-name", short_name="f", type=str, argname="name",
 
431
        option.Option("function-name", short_name="f", type=text_type, argname="name",
427
432
                      help="Name of the generated function (default: _brz)"),
428
433
        option.Option("function-only", short_name="o", type=None,
429
434
                      help="Generate only the shell function, don't enable it"),
430
435
        option.Option("debug", type=None, hidden=True,
431
436
                      help="Enable shell code useful for debugging"),
432
 
        option.ListOption("plugin", type=str, argname="name",
 
437
        option.ListOption("plugin", type=text_type, argname="name",
433
438
                          # param_name="selected_plugins", # doesn't work, bug #387117
434
439
                          help="Enable completions for the selected plugin"
435
440
                          + " (default: all plugins)"),