def command_as_str(self, argument_filter=None):
"""
Applies all extensions to the executor and calls its ``command_as_str``.
:returns: command as string
:rtype: basestring
"""
def apply_extensions(extensions):
for extension in extensions:
verify_type_or_subclass(extension, Extension)
if isclass(extension):
extension = extension()
extension.apply_to_executor(self.executor)
apply_extensions(extension.extensions)
apply_extensions(self.extensions)
return self.executor.command_as_str(argument_filter)
评论列表
文章目录