cli.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:proxmoxsh 作者: timur-enikeev 项目源码 文件源码
def complete(self, text, state):
        """Complete current command"""
        if len(readline.get_line_buffer().strip()) == 0 or (len(readline.get_line_buffer().split()) <= 1 and readline.get_line_buffer()[-1] != " "):
            results = [command + " " for command in self.commands if command.startswith(text) ] + [None]
        return results[state]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号