mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-11-30 16:46:27 +00:00
36 lines
885 B
Python
36 lines
885 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "doc",
|
|
srcs = [
|
|
"man_docs.go",
|
|
"md_docs.go",
|
|
"rest_docs.go",
|
|
"util.go",
|
|
"yaml_docs.go",
|
|
],
|
|
importmap = "peridot.resf.org/vendor/github.com/spf13/cobra/doc",
|
|
importpath = "github.com/spf13/cobra/doc",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//vendor/github.com/spf13/cobra",
|
|
"//vendor/github.com/spf13/pflag",
|
|
"//vendor/gopkg.in/yaml.v3:yaml_v3",
|
|
"@com_github_cpuguy83_go_md2man_v2//md2man",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "doc_test",
|
|
srcs = [
|
|
"cmd_test.go",
|
|
"man_docs_test.go",
|
|
"man_examples_test.go",
|
|
"md_docs_test.go",
|
|
"rest_docs_test.go",
|
|
"yaml_docs_test.go",
|
|
],
|
|
embed = [":doc"],
|
|
deps = ["//vendor/github.com/spf13/cobra"],
|
|
)
|