scouting: Add a debug CLI for the webserver
This CLI should let us debug the webserver easily. It simulates calls
that the web page can make. Create a JSON version of the flatbuffer
message you want to send and pass it as a file to the correct option
on the `cli` binary. There's nothing really implemented yet because
the webserver doesn't have a whole lot implemented either.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: If396dd8dc3b1e24515cb2d5765b3d5f233066cda
diff --git a/scouting/webserver/requests/messages/BUILD b/scouting/webserver/requests/messages/BUILD
index a32ca57..1567935 100644
--- a/scouting/webserver/requests/messages/BUILD
+++ b/scouting/webserver/requests/messages/BUILD
@@ -1,5 +1,17 @@
load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_go_library", "flatbuffer_ts_library")
+FILE_NAMES = (
+ "error_response",
+ "submit_data_scouting",
+ "submit_data_scouting_response",
+)
+
+filegroup(
+ name = "fbs_files",
+ srcs = ["%s.fbs" % name for name in FILE_NAMES],
+ visibility = ["//visibility:public"],
+)
+
[(
flatbuffer_go_library(
name = name + "_go_fbs",
@@ -14,8 +26,4 @@
target_compatible_with = ["@platforms//cpu:x86_64"],
visibility = ["//visibility:public"],
),
-) for name in (
- "error_response",
- "submit_data_scouting",
- "submit_data_scouting_response",
-)]
+) for name in FILE_NAMES]