Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Bazel rule for generating a "text proto" populated with dummy data.

MODULE.bazel

bazel_dep(
    name = "com_github_bcsgh_dummy_proto",
    version = ...,
)

Usage

load("@com_github_bcsgh_dummy_proto//tools:gen_dummy.bzl", "gen_dummy")

proto_library(
    name = "api",
    srcs = ["api.proto"],
)

gen_dummy(
    name = "dummy_api_data",
    proto = ":api",
    message_name = "some.thing.Responce",
    pb = "test_dummy.txt.pb",
)

gen_dummy

load("@com_github_bcsgh_dummy_proto//tools:gen_dummy.bzl", "gen_dummy")

gen_dummy(name, counts, enums, json, message_name, pb, proto)

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
counts A json file mapping fully qualified repated field name to lengths. Label optional None
enums A json file holding a map from enum names to values to skip. Label optional None
json The generated JavaScript file. Label optional None
message_name A proto buff name. Must be fully qualified. String required
pb The generated protobuf text format file. Label optional None
proto A proto_library rule to generate from. Label required

Setup (for development)

To configure the git hooks, run ./.git_hooks/setup.sh

About

Bazel build rules for generating protos populated with dummy data.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages