@@ -251,9 +251,10 @@ def drop(app_target: str | None, flow_name: tuple[str, ...], drop_all: bool):
251
251
"""
252
252
Drop the backend setup for flows.
253
253
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>`
257
258
3. Drop specific named flows: `cocoindex drop <APP_TARGET> [FLOW_NAME...]`
258
259
"""
259
260
app_ref = None
@@ -270,7 +271,7 @@ def drop(app_target: str | None, flow_name: tuple[str, ...], drop_all: bool):
270
271
flow_names = list (flow_name )
271
272
click .echo (f"Preparing to drop specified flows: { ', ' .join (flow_names )} (in '{ app_ref } ')." , err = True )
272
273
else :
273
- flow_names = [ fl . name for fl in flow .flows ()]
274
+ flow_names = flow .flow_names ()
274
275
if not flow_names :
275
276
click .echo (f"No flows found defined in '{ app_ref } ' to drop." )
276
277
return
@@ -338,11 +339,12 @@ def evaluate(app_flow_specifier: str, output_dir: str | None, cache: bool = True
338
339
Instead of updating the index, it dumps what should be indexed to files.
339
340
Mainly used for evaluation purpose.
340
341
342
+ \b
341
343
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
346
348
- an_installed.module_name:SpecificFlowName
347
349
348
350
:SpecificFlowName can be omitted only if the application defines a single flow.
0 commit comments