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

Add protocol selection in the "substreams init" command #576

Merged
merged 6 commits into from
Feb 10, 2025

Conversation

enoldev
Copy link
Contributor

@enoldev enoldev commented Feb 3, 2025

No description provided.

proto/sf/codegen/conversation/conversation.proto Outdated Show resolved Hide resolved
cmd/substreams/init.go Outdated Show resolved Hide resolved
cmd/substreams/init.go Outdated Show resolved Hide resolved

fmt.Println(gray("┃"), "Chosen chain: ", bold(selector.Id), "-", selector.Title)

var generatorOptions []huh.Option[*pbconvo.DiscoveryResponse_Generator]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var generatorOptions []huh.Option[*pbconvo.DiscoveryResponse_Generator]
generatorOptions := make([]huh.Option[*pbconvo.DiscoveryResponse_Generator], 0, len(selector.Generators))

cmd/substreams/init.go Outdated Show resolved Hide resolved
cmd/substreams/init.go Outdated Show resolved Hide resolved
cmd/substreams/init.go Outdated Show resolved Hide resolved
cmd/substreams/init.go Outdated Show resolved Hide resolved
@maoueh
Copy link
Contributor

maoueh commented Feb 6, 2025

There is just a small conflict, rebase and re-generate the Protobuf, and we should be good

@enoldev enoldev merged commit febd89f into develop Feb 10, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants