formatter.py 文件源码

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

项目:aryas 作者: lattkkthxbbye 项目源码 文件源码
def _add_entries(self, commands):
        """
        Adds commands from a dict to the paginator
        :param commands: the dict with commands
        """
        for name, command in commands:
            # skip aliases
            if name in command.aliases:
                continue

            if isinstance(command, Group):
                self._expand_group(command, '')
                continue

            entry = '**{0}** - {1}'.format(name, command.short_doc)
            shortened = self.shorten(entry)
            self._paginator.add_line(shortened)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号