Changed name to command
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Pünkösd Marcell 2021-04-14 17:48:46 +02:00
parent 2d9b771d14
commit c0a554ea98
2 changed files with 5 additions and 3 deletions

View File

@ -9,9 +9,11 @@ def compile_program(plugin_repository: PluginRepository, program_source: List[di
compiled_program = []
for command_source in program_source:
logger.debug(f"Compiling: [{command_source['name']}],{command_source['args']}")
cmd = command_source['command']
args = command_source['args']
logger.debug(f"Compiling: [{cmd}:{args}]")
compiled_program.append(
plugin_repository.get_compiler(command_source['name']).compile(**command_source['args'])
plugin_repository.get_compiler(cmd).compile(**args)
)
return compiled_program

View File

@ -6,7 +6,7 @@ SUPPORTED_PROGRAM_STRUCTURE_VERSION = 1
class CommandSchema(Schema):
name = fields.Str(required=True)
command = fields.Str(required=True)
args = fields.Dict(required=True)
class Meta: