From 89963d22c7e144e063b2ded76db264b759c8ded3 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 1 Apr 2025 23:03:13 +0300 Subject: initial iordata_test --- cmd/ior/main.go | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'cmd') diff --git a/cmd/ior/main.go b/cmd/ior/main.go index f085c60..0f243f7 100644 --- a/cmd/ior/main.go +++ b/cmd/ior/main.go @@ -1,15 +1,25 @@ package main import ( + "flag" "ior/internal" - "ior/internal/flags" + "log" "runtime" ) +// main is the entry point for the application. It checks if the OS is Linux, +// parses command-line flags, and runs the internal logic of the application. func main() { if runtime.GOOS != "linux" { - panic("Unsupported OS") + log.Fatal("Unsupported OS") + } + + // Parse command-line flags + flag.Parse() + + // Run the internal logic of the application + if err := internal.Run(); err != nil { + log.Fatalf("Failed to run: %v", err) } - flags.Parse() - internal.Run() } + -- cgit v1.2.3