fix: cli agebd service add method
This commit is contained in:
+5
-4
@@ -1,6 +1,7 @@
|
||||
import typer
|
||||
|
||||
from config.paths import Paths
|
||||
from core.git import GitRepoManager
|
||||
from core.service_creator import ServiceCreator
|
||||
from core.utils import get_git_root, init_logging
|
||||
from models import ServiceRegistry
|
||||
@@ -43,13 +44,13 @@ def add(
|
||||
):
|
||||
init_logging()
|
||||
ctx = ServicesContext.load_from_disk(Paths())
|
||||
service_creator = ServiceCreator(ctx=ctx)
|
||||
service_creator = ServiceCreator(ctx=ctx, repo_manager=GitRepoManager(REPO_ROOT))
|
||||
service_creator.add_service(
|
||||
name=name,
|
||||
user=user, # TODO: read from 'whoami'?
|
||||
user=user,
|
||||
ioc_description=ioc_description,
|
||||
ui_name=ui_name, # TODO: make this standard?
|
||||
ui_filename=ui_filename, # TODO: make this standard?
|
||||
ui_name=ui_name,
|
||||
ui_filename=ui_filename,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user