~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-08-22 16:31:16 UTC
  • Revision ID: mbp@sourcefrog.net-20050822163116-935a433f338e7d5b
- new shell-complete command to help zsh completion

Show diffs side-by-side

added added

removed removed

Lines of Context:
1556
1556
        help.help(topic)
1557
1557
 
1558
1558
 
 
1559
class cmd_shell_complete(Command):
 
1560
    """Show appropriate completions for context.
 
1561
 
 
1562
    For a list of all available commands, say 'bzr shell-complete'."""
 
1563
    takes_args = ['context?']
 
1564
    aliases = ['s-c']
 
1565
    hidden = True
 
1566
    
 
1567
    def run(self, context=None):
 
1568
        import shellcomplete
 
1569
        shellcomplete.shellcomplete(context)
1559
1570
 
1560
1571
 
1561
1572
class cmd_missing(Command):