peridot/vendor/github.com/olekukonko/tablewriter/BUILD.bazel
Neil Hanlon e7b15b3cde
feat(peridot-cli/task-info): fetch and display task details
given a task ID, fetch its details and display them to a table or to
json with `-o json`. Table view also adds a calculated task duration and
can optionally include the submitter information as well as a link to
logs for the task.

* --no-color - to skip colorizing output
* --L|--logs - include column with link to logs
* --submitter - show submitter
* --no-wait - control whether to wait until a task completes to output
  (table mode)
2024-07-31 17:11:29 -04:00

28 lines
691 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "tablewriter",
srcs = [
"csv.go",
"table.go",
"table_with_color.go",
"util.go",
"wrap.go",
],
importmap = "peridot.resf.org/vendor/github.com/olekukonko/tablewriter",
importpath = "github.com/olekukonko/tablewriter",
visibility = ["//visibility:public"],
deps = ["//vendor/github.com/mattn/go-runewidth"],
)
go_test(
name = "tablewriter_test",
srcs = [
"table_test.go",
"wrap_test.go",
],
data = glob(["testdata/**"]),
embed = [":tablewriter"],
deps = ["//vendor/github.com/mattn/go-runewidth"],
)