]> git.giacomolli.uk - onechat/blobdiff - main.go
Keep scenario tests with their implementation
[onechat] / main.go
diff --git a/main.go b/main.go
index 271a91a56d749d67880213d921a949ecfa6b8b15..400538a39a3193be98a7f54d3060ce459a9bc970 100644 (file)
--- a/main.go
+++ b/main.go
@@ -1,3 +1,4 @@
+// Command onechat runs the agent daemon and its terminal client.
 package main
 
 import (
@@ -20,10 +21,5 @@ func run() error {
        ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
        defer cancel()
 
-       _, err := fmt.Println("onechat")
-       if err != nil {
-               return err
-       }
-
-       return ctx.Err()
+       return parseCommand(ctx, os.Args[1:])
 }