tconsole: init
This introduces the 'tconsole' (terminal console), the default
interface to show in /dev/tty1 on a Metropolis node.
Currently it just shows some basic status in a single page. Upcoming
changes will reintroduce a simple log dump on a different page, as well
as entirely new features like supervision tree inspection.
To iterate quickly on the console, a 'standalone' target is added which
exercises the console on the user's terminal with fake node data.
However only the actual console in Linux displays colours as intended.
Change-Id: I5cfba2bdb320daa080a073e76bf0494aeab6a4d4
Reviewed-on: https://review.monogon.dev/c/monogon/+/3371
Reviewed-by: Leopold Schabel <leo@monogon.tech>
Tested-by: Jenkins CI
diff --git a/build/bazel/go.MODULE.bazel b/build/bazel/go.MODULE.bazel
index 4d69a62..e5de395 100644
--- a/build/bazel/go.MODULE.bazel
+++ b/build/bazel/go.MODULE.bazel
@@ -22,6 +22,7 @@
"com_github_corverroos_commentwrap",
"com_github_diskfs_go_diskfs",
"com_github_docker_distribution",
+ "com_github_gdamore_tcell_v2",
"com_github_go_delve_delve",
"com_github_golang_migrate_migrate_v4",
"com_github_google_cel_go",
@@ -58,6 +59,7 @@
"com_github_prometheus_client_golang",
"com_github_prometheus_node_exporter",
"com_github_pseudomuto_protoc_gen_doc",
+ "com_github_rivo_uniseg",
"com_github_rmohr_bazeldnf",
"com_github_sbezverk_nfproxy",
"com_github_spf13_cobra",