This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import os
|
||||
import sys
|
||||
from config import Config
|
||||
from plugins import WaitPlugin
|
||||
from plugins import WaitPlugin, SyncPlugin
|
||||
from plugin_repository import PluginRepository
|
||||
from program_executor import ProgramExecutor
|
||||
from http_server import ControllerHTTPServer
|
||||
@@ -34,12 +34,15 @@ def main():
|
||||
|
||||
compiler_repo = PluginRepository()
|
||||
compiler_repo.register_plugin(WaitPlugin)
|
||||
compiler_repo.register_plugin(SyncPlugin)
|
||||
|
||||
# Example code:
|
||||
compiler_repo.load_plugin("wait")
|
||||
compiler_repo.load_plugin("sync")
|
||||
program = []
|
||||
program.append(compiler_repo.get_compiler("wait").compile(secs=2))
|
||||
program.append(compiler_repo.get_compiler("wait").compile(secs=3))
|
||||
program.append(compiler_repo.get_compiler("sync").compile(nodes=2, name="test"))
|
||||
program.append(compiler_repo.get_compiler("wait").compile(secs=10))
|
||||
program.append(compiler_repo.get_compiler("wait").compile(secs=10))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user