peridot/vendor/github.com/spf13/cobra/BUILD.bazel
Neil Hanlon 0d3255ccca
feat(peridot-cli/task-logs): bump cobra for mutex feature
* refactor some code into utils
* prep for task info
2024-07-26 22:38:23 -04:00

52 lines
1.4 KiB
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "cobra",
srcs = [
"active_help.go",
"args.go",
"bash_completions.go",
"bash_completionsV2.go",
"cobra.go",
"command.go",
"command_notwin.go",
"command_win.go",
"completions.go",
"fish_completions.go",
"flag_groups.go",
"powershell_completions.go",
"shell_completions.go",
"zsh_completions.go",
],
importmap = "peridot.resf.org/vendor/github.com/spf13/cobra",
importpath = "github.com/spf13/cobra",
visibility = ["//visibility:public"],
deps = [
"//vendor/github.com/spf13/pflag",
] + select({
"@io_bazel_rules_go//go/platform:windows": [
"//vendor/github.com/inconshreveable/mousetrap",
],
"//conditions:default": [],
}),
)
go_test(
name = "cobra_test",
srcs = [
"active_help_test.go",
"args_test.go",
"bash_completionsV2_test.go",
"bash_completions_test.go",
"cobra_test.go",
"command_test.go",
"completions_test.go",
"fish_completions_test.go",
"flag_groups_test.go",
"powershell_completions_test.go",
"zsh_completions_test.go",
],
embed = [":cobra"],
deps = ["//vendor/github.com/spf13/pflag"],
)