~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/shellcomplete.py

  • Committer: Robert Collins
  • Date: 2009-06-15 11:05:33 UTC
  • mto: This revision was merged to the branch mainline in revision 4441.
  • Revision ID: robertc@robertcollins.net-20090615110533-fwqo9nnlynbp1o42
Shellcompletion apparently isn't tested.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
    import commands
61
61
    from inspect import getdoc
62
62
 
 
63
    commands.install_bzr_command_hooks()
 
64
 
63
65
    if outfile is None:
64
66
        outfile = sys.stdout
65
67
 
66
68
    cmds = []
67
69
    for cmdname in commands.all_command_names():
68
 
        cmd = commands.get_cmd_object(cmdname)))
 
70
        cmd = commands.get_cmd_object(cmdname)
69
71
        cmds.append((cmdname, cmd))
70
72
        for alias in cmd.aliases:
71
73
            cmds.append((alias, cmd))