github.com/sercand/please@v13.4.0+incompatible/src/help/BUILD (about) 1 # We embed machine-readable information about the rules into the binary. 2 # Conceptually we could get the interpreter to read back their docstrings 3 # but we'd rather avoid the cgo link for that, and this embedding is 4 # easy enough. 5 go_bindata( 6 name = "data", 7 srcs = [ 8 "misc.json", 9 ":config_json", 10 ], 11 compress = True, 12 ) 13 14 go_library( 15 name = "help", 16 srcs = [ 17 "completion.go", 18 "help.go", 19 ":data", 20 ], 21 visibility = ["PUBLIC"], 22 deps = [ 23 "//src/cli", 24 "//src/core", 25 "//src/parse", 26 "//src/utils", 27 "//third_party/go:go-flags", 28 "//third_party/go:logging", 29 ], 30 ) 31 32 go_test( 33 name = "help_test", 34 srcs = ["help_test.go"], 35 deps = [ 36 ":help", 37 "//third_party/go:testify", 38 ], 39 ) 40 41 genrule( 42 name = "config_json", 43 outs = ["config.json"], 44 cmd = "$TOOL > $OUTS", 45 tools = ["//src/help/config:config_help"], 46 )