@@ -531,6 +531,13 @@ def evaluate(
531531 default = False ,
532532 help = "Automatically setup backends for the flow if it's not setup yet." ,
533533)
534+ @click .option (
535+ "--reexport" ,
536+ is_flag = True ,
537+ show_default = True ,
538+ default = False ,
539+ help = "Reexport to targets even if there's no change." ,
540+ )
534541@click .option (
535542 "-f" ,
536543 "--force" ,
@@ -560,6 +567,7 @@ def server(
560567 address : str | None ,
561568 live_update : bool ,
562569 setup : bool , # pylint: disable=redefined-outer-name
570+ reexport : bool ,
563571 force : bool ,
564572 quiet : bool ,
565573 cors_origin : str | None ,
@@ -583,6 +591,7 @@ def server(
583591 cors_local ,
584592 live_update ,
585593 setup ,
594+ reexport ,
586595 force ,
587596 quiet ,
588597 )
@@ -631,6 +640,7 @@ def _run_server(
631640 cors_local : int | None = None ,
632641 live_update : bool = False ,
633642 run_setup : bool = False ,
643+ reexport : bool = False ,
634644 force : bool = False ,
635645 quiet : bool = False ,
636646) -> None :
@@ -664,8 +674,12 @@ def _run_server(
664674
665675 click .secho ("Press Ctrl+C to stop the server." , fg = "yellow" )
666676
667- if live_update :
668- options = flow .FlowLiveUpdaterOptions (live_mode = True , print_stats = not quiet )
677+ if live_update or reexport :
678+ options = flow .FlowLiveUpdaterOptions (
679+ live_mode = live_update ,
680+ reexport_targets = reexport ,
681+ print_stats = not quiet ,
682+ )
669683 asyncio .run_coroutine_threadsafe (
670684 _update_all_flows_with_hint_async (options ), execution_context .event_loop
671685 )
0 commit comments