<s> from jirafs . plugin import CommandPlugin , CommandResult <EOL> class Command ( CommandPlugin ) : <EOL> """<STR_LIT>""" <EOL> MIN_VERSION = '<STR_LIT>' <EOL> MAX_VERSION = '<STR_LIT>' <EOL> def main ( self , args , folder , ** kwargs ) : <EOL> return folder . process_plugin_builds ( ) <EOL> def cmd ( self , * args , ** kwargs ) : <EOL> data = self . main ( * args , ** kwargs ) <EOL> result = CommandResult ( ) <EOL> for key , value in data . items ( ) : <EOL> result = result . add_line ( <EOL> '<STR_LIT>' , <EOL> plugin = key , <EOL> ) <EOL> if not value : <EOL> continue <EOL> if not isinstance ( value , basestring ) : <EOL> value = json . dumps ( <EOL> value , <EOL> indent = <NUM_LIT:4> , <EOL> sort_keys = True , <EOL> ) <EOL> for line in value . split ( '<STR_LIT:\n>' ) : <EOL> if not line . strip ( ) : <EOL> continue <EOL> result = result . add_line ( <EOL> '<STR_LIT>' , <EOL> line = line , <EOL> ) <EOL> return result </s>
