summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ior/main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/ior/main.go b/cmd/ior/main.go
index ebd3ef3..9c5bac1 100644
--- a/cmd/ior/main.go
+++ b/cmd/ior/main.go
@@ -7,6 +7,7 @@ import (
"ior/internal"
"ior/internal/flags"
+ "ior/internal/tui"
)
// main is the entry point for the application. It checks if the OS is Linux,
@@ -32,6 +33,15 @@ func main() {
return
}
+ // Wire the concrete TUI runner functions into the core internal package.
+ // This is the only place that imports both internal and internal/tui, which
+ // breaks the cycle: internal no longer imports internal/tui.
+ internal.SetTUIRunners(
+ tui.RunWithTraceStarterConfig,
+ tui.RunTestFlamesWithTraceStarterConfig,
+ tui.RunTestFlamesWithTraceStarterConfig, // same runner; starter differs (static vs live)
+ )
+
// Run the internal logic of the application.
if err := internal.Run(cfg); err != nil {
fmt.Printf("Failed to run: %v\n", err)