chore: change user -> ioc_owner
This commit is contained in:
+10
-4
@@ -1,9 +1,9 @@
|
||||
import typer
|
||||
|
||||
from agebd.utils import get_git_root, init_logging
|
||||
from config.paths import Paths
|
||||
from core.git import GitRepoManager
|
||||
from core.service_creator import ServiceCreator
|
||||
from agebd.utils import get_git_root, init_logging
|
||||
from models import ServiceRegistry
|
||||
from models.context import ServicesContext
|
||||
|
||||
@@ -22,12 +22,18 @@ def add(
|
||||
name: str = typer.Option(
|
||||
..., "--name", "-n", help="Must only contain lowercase characters and dashes"
|
||||
),
|
||||
user: str = typer.Option(..., "--user", "-u", help="PSI username of the owner of the service"),
|
||||
ioc_owner: str = typer.Option(
|
||||
...,
|
||||
"--ioc-owner",
|
||||
"-o",
|
||||
help="Owner of the IOC that will be created. "
|
||||
"This is the person that will be contacted by picket service in case of an issue. E.g. 'armborst'",
|
||||
),
|
||||
ioc_description: str = typer.Option(
|
||||
...,
|
||||
"--ioc-description",
|
||||
"-d",
|
||||
help="See <repo-root>/docs/user/ioc/ioc_overview.md for examples",
|
||||
help="See <repo-root>/docs/user/ioc/iocs_overview.md for examples",
|
||||
),
|
||||
ui_name: str = typer.Option(
|
||||
...,
|
||||
@@ -47,7 +53,7 @@ def add(
|
||||
service_creator = ServiceCreator(ctx=ctx, repo_manager=GitRepoManager(REPO_ROOT))
|
||||
service_creator.add_service(
|
||||
name=name,
|
||||
user=user,
|
||||
ioc_owner=ioc_owner,
|
||||
ioc_description=ioc_description,
|
||||
ui_name=ui_name,
|
||||
ui_filename=ui_filename,
|
||||
|
||||
Reference in New Issue
Block a user