Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)
Complete names of commands on the system PATH.

src/k/m/kmd-2.2/kmd/examples/simpleapp.py   kmd(Download)
import kmd
 
from kmd.completions.command import CommandCompletion
from kmd.completions.filename import FilenameCompletion
 
    def preloop(self):
        """Set up completions."""
        super(SimpleApp, self).preloop()
        self.completecommand = CommandCompletion()
        self.completefilename = FilenameCompletion()

src/g/p/gpgkeys-1.23/gpgkeys/gpgkeys.py   gpgkeys(Download)
 
from kmd.completions.filename import FilenameCompletion
from kmd.completions.command import CommandCompletion
from completions.key import KeyCompletion
from completions.keyserver import KeyserverCompletion
        # Setup completions
        self.completefilename = FilenameCompletion(self.quote_char)
        self.completecommand = CommandCompletion()
        self.completekeyid = KeyCompletion()
        self.completekeyserver = KeyserverCompletion()

src/g/p/gpgkeys-HEAD/gpgkeys/gpgkeys.py   gpgkeys(Download)
 
from kmd.completions.filename import FilenameCompletion
from kmd.completions.command import CommandCompletion
from completions.key import KeyCompletion
from completions.keyserver import KeyserverCompletion
        # Setup completions
        self.completefilename = FilenameCompletion(self.quote_char)
        self.completecommand = CommandCompletion()
        self.completekeyid = KeyCompletion()
        self.completekeyserver = KeyserverCompletion()