/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-05-06 03:06:18 UTC
  • mfrom: (7500.1.2 trunk-merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200506030618-131sjbc876q7on66
Merge the 3.1 branch.

Merged from https://code.launchpad.net/~jelmer/brz/trunk-merge-3.1/+merge/383481

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
 
 
21
19
from ... import (
22
20
    cmdline,
23
21
    commands,
26
24
    option,
27
25
    plugin,
28
26
)
29
 
from ...sixish import (
30
 
    text_type,
31
 
    )
32
27
import breezy
33
28
import re
34
29
import sys
428
423
    """
429
424
 
430
425
    takes_options = [
431
 
        option.Option("function-name", short_name="f", type=text_type, argname="name",
 
426
        option.Option("function-name", short_name="f", type=str, argname="name",
432
427
                      help="Name of the generated function (default: _brz)"),
433
428
        option.Option("function-only", short_name="o", type=None,
434
429
                      help="Generate only the shell function, don't enable it"),
435
430
        option.Option("debug", type=None, hidden=True,
436
431
                      help="Enable shell code useful for debugging"),
437
 
        option.ListOption("plugin", type=text_type, argname="name",
 
432
        option.ListOption("plugin", type=str, argname="name",
438
433
                          # param_name="selected_plugins", # doesn't work, bug #387117
439
434
                          help="Enable completions for the selected plugin"
440
435
                          + " (default: all plugins)"),