blob: e7d3cbf69c902b2676c8fbbaee95c94c7ad96c7f [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "cmd",
srcs = [
"completion.go",
"delete.go",
"diff.go",
"root.go",
"show.go",
"update.go",
"validate.go",
"version.go",
],
importpath = "code.hackerspace.pl/hscloud/cluster/tools/kartongips/cmd",
visibility = ["//visibility:public"],
deps = [
"//cluster/tools/kartongips/pkg/kubecfg",
"//cluster/tools/kartongips/utils",
"@com_github_genuinetools_reg//registry",
"@com_github_google_go_jsonnet//:go-jsonnet",
"@com_github_mattn_go_isatty//:go-isatty",
"@com_github_sirupsen_logrus//:logrus",
"@com_github_spf13_cobra//:cobra",
"@io_k8s_apimachinery//pkg/api/meta",
"@io_k8s_apimachinery//pkg/apis/meta/v1/unstructured",
"@io_k8s_client_go//discovery",
"@io_k8s_client_go//dynamic",
"@io_k8s_client_go//plugin/pkg/client/auth",
"@io_k8s_client_go//restmapper",
"@io_k8s_client_go//tools/clientcmd",
"@io_k8s_klog//:klog",
"@org_golang_x_crypto//ssh/terminal",
],
)
go_test(
name = "cmd_test",
srcs = [
"completion_test.go",
"show_test.go",
"version_test.go",
],
embed = [":cmd"],
deps = [
"@com_github_spf13_cobra//:cobra",
"@com_github_spf13_pflag//:pflag",
"@in_gopkg_yaml_v2//:yaml_v2",
],
)