summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-04-01 23:03:13 +0300
committerPaul Buetow <paul@buetow.org>2025-04-01 23:03:13 +0300
commit89963d22c7e144e063b2ded76db264b759c8ded3 (patch)
tree83fe07cdfe176485ccf52072c8c23f4df8da63f8 /cmd
parent1e2281b92863bf90a9be8769b8809ab300158a5d (diff)
initial iordata_test
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ior/main.go18
1 files changed, 14 insertions, 4 deletions
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()
}
+