m/cli/metroctl: refactor, use tabular layout
This lays out the files to make it more obvious what command each file
implements, and uses the newly implemented tabular formatting for
listing/describing nodes.
Change-Id: I90feeae67de0f78090dd5440cbad4cb9aa6bb6bc
Reviewed-on: https://review.monogon.dev/c/monogon/+/1392
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/metropolis/cli/metroctl/BUILD.bazel b/metropolis/cli/metroctl/BUILD.bazel
index 004113e..b2000fb 100644
--- a/metropolis/cli/metroctl/BUILD.bazel
+++ b/metropolis/cli/metroctl/BUILD.bazel
@@ -3,18 +3,16 @@
go_library(
name = "metroctl_lib",
srcs = [
- "approve.go",
- "describe.go",
- "format.go",
- "install.go",
- "k8scredplugin.go",
- "list.go",
+ "cmd_install.go",
+ "cmd_k8scredplugin.go",
+ "cmd_node.go",
+ "cmd_node_approve.go",
+ "cmd_node_set.go",
+ "cmd_takeownership.go",
"main.go",
- "node.go",
"rpc.go",
- "set.go",
"table.go",
- "takeownership.go",
+ "table_node.go",
],
data = [
"//metropolis/node:bundle",
@@ -32,7 +30,6 @@
"//metropolis/node/core/identity",
"//metropolis/node/core/rpc",
"//metropolis/proto/api",
- "//metropolis/proto/common",
"@com_github_adrg_xdg//:xdg",
"@com_github_spf13_cobra//:cobra",
"@io_k8s_apimachinery//pkg/apis/meta/v1:meta",