Skip to content

Commit 0e97d1e

Browse files
fix: make flow name retrieval efficient (cocoindex-io#414)
Co-authored-by: LJ <[email protected]>
1 parent cd193b7 commit 0e97d1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/cocoindex/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from rich.console import Console
44

55
from . import flow, lib
6+
from .flow import flow_names
67
from .setup import sync_setup, drop_setup, flow_names_with_setup, apply_setup_changes
78
from .runtime import execution_context
89

@@ -20,7 +21,7 @@ def ls(show_all: bool):
2021
"""
2122
List all flows.
2223
"""
23-
current_flow_names = flow.flow_names()
24+
current_flow_names = flow_names()
2425
persisted_flow_names = flow_names_with_setup()
2526
remaining_persisted_flow_names = set(persisted_flow_names)
2627

0 commit comments

Comments
 (0)