Add an aos_send

It's basically the opposite of aos_dump.

Change-Id: I12fc53f8afbc3eef3ad4293d37b1a575e7a8d596
diff --git a/aos/BUILD b/aos/BUILD
index 7c976b1..8e2d8ac 100644
--- a/aos/BUILD
+++ b/aos/BUILD
@@ -7,6 +7,7 @@
     srcs = [
         "//aos:aos_dump",
         "//aos:aos_dump_autocomplete.sh",
+        "//aos:aos_send",
         "//aos/starter",
     ],
     visibility = ["//visibility:public"],
@@ -23,10 +24,10 @@
 filegroup(
     name = "prime_binaries_stripped",
     srcs = [
-        # starter is hard coded to look for a non-stripped core...
         "//aos:aos_dump.stripped",
-        "//aos/starter",
         "//aos:aos_dump_autocomplete.sh",
+        "//aos:aos_send.stripped",
+        "//aos/starter",
     ],
     visibility = ["//visibility:public"],
 )
@@ -488,6 +489,24 @@
     ],
 )
 
+cc_library(
+    name = "aos_cli_utils",
+    srcs = [
+        "aos_cli_utils.cc",
+    ],
+    hdrs = [
+        "aos_cli_utils.h",
+    ],
+    target_compatible_with = ["@platforms//os:linux"],
+    visibility = ["//visibility:public"],
+    deps = [
+        ":configuration",
+        "//aos:init",
+        "//aos/events:shm_event_loop",
+        "@com_github_google_glog//:glog",
+    ],
+)
+
 cc_binary(
     name = "aos_dump",
     srcs = [
@@ -496,10 +515,27 @@
     target_compatible_with = ["@platforms//os:linux"],
     visibility = ["//visibility:public"],
     deps = [
+        ":aos_cli_utils",
         ":configuration",
         ":json_to_flatbuffer",
         "//aos:init",
-        "//aos/events:shm_event_loop",
+        "@com_github_google_glog//:glog",
+    ],
+)
+
+cc_binary(
+    name = "aos_send",
+    srcs = [
+        "aos_send.cc",
+    ],
+    target_compatible_with = ["@platforms//os:linux"],
+    visibility = ["//visibility:public"],
+    deps = [
+        ":aos_cli_utils",
+        ":configuration",
+        ":init",
+        ":json_to_flatbuffer",
+        "@com_github_gflags_gflags//:gflags",
         "@com_github_google_glog//:glog",
     ],
 )