Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs for telescope download #691

Open
Zetazzz opened this issue Nov 6, 2024 · 0 comments
Open

Docs for telescope download #691

Zetazzz opened this issue Nov 6, 2024 · 0 comments

Comments

@Zetazzz
Copy link
Collaborator

Zetazzz commented Nov 6, 2024

Add docs to readme for the function telescope download then we can release.

Here's a simple one:

telescope transpile requires the proto files (from the install @protobufs/) in the same place. Is it possible for me to do glob searching? like --protoDirs=./proto,../proto/* . This way I don't have to copy paste over my proto files to the nested generated

about this. Hope this new function can help.

Create the config file ".protod.config.json":

{
"repos": [
{ "owner": "cosmos", "repo": "cosmos-sdk", "branch": "release/v0.50.x" },
{ "owner": "cosmos", "repo": "ibc-go" },
{ "owner": "injectivelabs", "repo": "sdk-go" }
],
"protoDirMapping": {
"gogo/protobuf/master": ".",
"googleapis/googleapis/master": ".",
"protocolbuffers/protobuf/main": "src"
},
"outDir": "protos",
"ssh": true,
"tempRepoDir": "git-modules",
"targets": [
"cosmos/auth/v1beta1/auth.proto",
]
}

telescope download --config ./path/to/.protod.config.json

target can be patterns:

      "cosmos/bank/v1beta1/tx.proto",
      "cosmos/gov/**/*.proto",
      "cosmos/authz/**/*.proto",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant