/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/shellcomplete.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-04-01 17:45:41 UTC
  • mfrom: (6929.1.2 shell-complete-fix)
  • Revision ID: breezy.the.bot@gmail.com-20180401174541-vougv8tptgfx20h3
Fix 'brz shell-complete' and add some really basic smoke tests.

Merged from https://code.launchpad.net/~jelmer/brz/shell-complete-fix/+merge/342458

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        outfile = sys.stdout
36
36
 
37
37
    from inspect import getdoc
38
 
    import commands
 
38
    from . import commands
39
39
    cmdobj = commands.get_cmd_object(cmdname)
40
40
 
41
41
    doc = getdoc(cmdobj)
57
57
            outfile.write('--%s\n' % opt.name)
58
58
 
59
59
 
60
 
def shellcomplete_commands(outfile = None):
 
60
def shellcomplete_commands(outfile=None):
61
61
    """List all commands"""
62
62
    from . import commands
63
63
    from inspect import getdoc