X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/80fa33c0fd65e4110f88f0cab9b19ca26c27d1f6..c781f79f3c8cb9a7577ee1574d196988da2719b3:/main.go?ds=sidebyside diff --git a/main.go b/main.go index 271a91a..400538a 100644 --- 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:]) }