@@ -251,9 +251,10 @@ def drop(app_target: str | None, flow_name: tuple[str, ...], drop_all: bool):
251251 """
252252 Drop the backend setup for flows.
253253
254- Modes of operation:\n
255- 1. Drop ALL persisted setups: `cocoindex drop --all`\n
256- 2. Drop all flows defined in an app: `cocoindex drop <APP_TARGET>`\n
254+ \b
255+ Modes of operation:
256+ 1. Drop ALL persisted setups: `cocoindex drop --all`
257+ 2. Drop all flows defined in an app: `cocoindex drop <APP_TARGET>`
257258 3. Drop specific named flows: `cocoindex drop <APP_TARGET> [FLOW_NAME...]`
258259 """
259260 app_ref = None
@@ -270,7 +271,7 @@ def drop(app_target: str | None, flow_name: tuple[str, ...], drop_all: bool):
270271 flow_names = list (flow_name )
271272 click .echo (f"Preparing to drop specified flows: { ', ' .join (flow_names )} (in '{ app_ref } ')." , err = True )
272273 else :
273- flow_names = [ fl . name for fl in flow .flows ()]
274+ flow_names = flow .flow_names ()
274275 if not flow_names :
275276 click .echo (f"No flows found defined in '{ app_ref } ' to drop." )
276277 return
@@ -338,11 +339,12 @@ def evaluate(app_flow_specifier: str, output_dir: str | None, cache: bool = True
338339 Instead of updating the index, it dumps what should be indexed to files.
339340 Mainly used for evaluation purpose.
340341
342+ \b
341343 APP_FLOW_SPECIFIER: Specifies the application and optionally the target flow.
342- Can be one of the following formats:\n
343- - path/to/your_app.py\n
344- - an_installed.module_name\n
345- - path/to/your_app.py:SpecificFlowName\n
344+ Can be one of the following formats:
345+ - path/to/your_app.py
346+ - an_installed.module_name
347+ - path/to/your_app.py:SpecificFlowName
346348 - an_installed.module_name:SpecificFlowName
347349
348350 :SpecificFlowName can be omitted only if the application defines a single flow.
0 commit comments