blob: 903f8c8fd3540cbdfbccad786f438e915b055f58 [file] [log] [blame]
Philipp Schraderd9096a32022-02-24 17:53:09 -08001load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
2
3go_library(
4 name = "cli_lib",
5 srcs = ["main.go"],
6 data = [
7 "//scouting/webserver/requests/messages:fbs_files",
8 "@com_github_google_flatbuffers//:flatc",
9 ],
10 importpath = "github.com/frc971/971-Robot-Code/scouting/webserver/requests/debug/cli",
11 target_compatible_with = ["@platforms//cpu:x86_64"],
12 visibility = ["//visibility:private"],
Philipp Schraderd3fac192022-03-02 20:35:46 -080013 deps = [
14 "//scouting/webserver/requests/debug",
15 "@com_github_davecgh_go_spew//spew",
16 ],
Philipp Schraderd9096a32022-02-24 17:53:09 -080017)
18
19go_binary(
20 name = "cli",
21 embed = [":cli_lib"],
22 target_compatible_with = ["@platforms//cpu:x86_64"],
23 visibility = ["//visibility:public"],
24)
25
26py_test(
27 name = "cli_test",
28 srcs = [
29 "cli_test.py",
30 ],
31 data = [
32 ":cli",
Philipp Schraderd3fac192022-03-02 20:35:46 -080033 "//scouting/scraping:test_data",
Philipp Schraderd9096a32022-02-24 17:53:09 -080034 "//scouting/webserver",
35 ],
36)