mirror of
https://github.com/hansjone/netx.git
synced 2026-10-12 17:53:21 +08:00
Export collect commands with aux by default again.
Match live collect: include discover-backed aux CLIs in plan/export (and unbound sections); primary-only via include_aux=false. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
f274d8ea72
commit
9342c0c7ce
4 changed files with 60 additions and 35 deletions
|
|
@ -177,7 +177,7 @@ def api_get_task(task_id: str, db: Session = Depends(get_db)) -> dict[str, Any]:
|
|||
def api_plan_task_commands(
|
||||
task_id: str,
|
||||
enabled_only: bool = Query(True),
|
||||
include_aux: bool = Query(False),
|
||||
include_aux: bool = Query(True),
|
||||
db: Session = Depends(get_db),
|
||||
) -> dict[str, Any]:
|
||||
"""List planned collect CLIs for a task (bindings expanded; no device login)."""
|
||||
|
|
@ -190,7 +190,7 @@ def api_plan_task_commands(
|
|||
def api_export_task_commands(
|
||||
task_id: str,
|
||||
enabled_only: bool = Query(True),
|
||||
include_aux: bool = Query(False),
|
||||
include_aux: bool = Query(True),
|
||||
db: Session = Depends(get_db),
|
||||
) -> StreamingResponse:
|
||||
"""Download planned collect commands as a .txt file."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue