Skip to content

Commit b141978

Browse files
author
root
committed
fix: pass catalog metadata by keyword in workflow add commands
1 parent 319c09c commit b141978

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

src/specify_cli/workflows/_commands.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,13 @@ def workflow_catalog_add(
10231023
project_root = _require_specify_project()
10241024
catalog = WorkflowCatalog(project_root)
10251025
try:
1026-
catalog.add_catalog(url, name, priority, install_allowed, description)
1026+
catalog.add_catalog(
1027+
url,
1028+
name,
1029+
priority=priority,
1030+
install_allowed=install_allowed,
1031+
description=description,
1032+
)
10271033
except WorkflowValidationError as exc:
10281034
console.print(f"[red]Error:[/red] {exc}")
10291035
raise typer.Exit(1)
@@ -1683,7 +1689,13 @@ def workflow_step_catalog_add(
16831689

16841690
catalog = StepCatalog(project_root)
16851691
try:
1686-
catalog.add_catalog(url, name, priority, install_allowed, description)
1692+
catalog.add_catalog(
1693+
url,
1694+
name,
1695+
priority=priority,
1696+
install_allowed=install_allowed,
1697+
description=description,
1698+
)
16871699
except StepValidationError as exc:
16881700
console.print(f"[red]Error:[/red] {exc}")
16891701
raise typer.Exit(1)

0 commit comments

Comments
 (0)