constellation/hack/clidocgen/BUILD.bazel
Moritz Sanft 46f5b1734e
cli: show available cli upgrades on upgrade check command (#1394)
* cli: upgrade check show cli upgrades

* only check compatibility for valid upgrades

* use semver.Sort

* extend unit tests

* add unit test for new compatible cli versions

* adapt to feedback

* fix rebase

* rework output

* minor -> major

Co-authored-by: Otto Bittner <cobittner@posteo.net>

* minor -> major

Co-authored-by: Otto Bittner <cobittner@posteo.net>

* dynamic major version

Co-authored-by: Otto Bittner <cobittner@posteo.net>

* remove currentK8sVer argument

* bazel gen & tidy

* bazel update

---------

Co-authored-by: Otto Bittner <cobittner@posteo.net>
2023-04-03 14:31:17 +02:00

22 lines
515 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "clidocgen_lib",
srcs = ["main.go"],
importpath = "github.com/edgelesssys/constellation/v2/hack/clidocgen",
visibility = ["//visibility:private"],
deps = [
"//cli/cmd",
"@com_github_spf13_cobra//:cobra",
"@com_github_spf13_cobra//doc",
],
)
go_binary(
name = "clidocgen",
embed = [":clidocgen_lib"],
# keep
pure = "on",
visibility = ["//visibility:public"],
)