Skip to content

Conversation

@ptrus
Copy link
Member

@ptrus ptrus commented Nov 19, 2025

Fixes: #648

See examples for added commands.

@netlify
Copy link

netlify bot commented Nov 19, 2025

Deploy Preview for oasisprotocol-cli ready!

Name Link
🔨 Latest commit ac6d03b
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-cli/deploys/69271ad49acdc300079c249e
😎 Deploy Preview https://deploy-preview-650--oasisprotocol-cli.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ptrus ptrus requested a review from matevz November 19, 2025 15:11
@ptrus ptrus changed the title cmd/rofl: Add providers list command cmd/rofl: Add providers list and show commands Nov 19, 2025
@ptrus ptrus force-pushed the ptrus/feature/providers-show branch 2 times, most recently from f55c598 to 4fd9e23 Compare November 19, 2025 16:08
cobra.CheckErr(err)

// Parse provider address.
providerAddr := args[0]
Copy link
Member

Choose a reason for hiding this comment

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

Can you do oasis rofl provider show [<address>] so that it shows you offers for the given provider or the one in the current ROFL manifest (--deployment can be added) or default, if none provided.

Copy link
Member Author

Choose a reason for hiding this comment

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

But doesn't the oasis rofl deploy --show-offers already do this? Does it make sense to duplicate this behaviour?

Copy link
Member

Choose a reason for hiding this comment

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

oasis rofl deploy --show-offers should now be synonym for oasis rofl provider show <the-validator-in-rofl-yaml-or-default-one>, because the new command also shows you a number of other interesting things such as the number of nodes, when was provider registered etc. This can be done in a separate PR though.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated,oasis rofl deploy --show-offers now reuses code from rofl/provder/...

Copy link
Member

@matevz matevz left a comment

Choose a reason for hiding this comment

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

Also update the docs please.

@ptrus ptrus force-pushed the ptrus/feature/providers-show branch from 4fd9e23 to cbc71f7 Compare November 20, 2025 20:55
@ptrus
Copy link
Member Author

ptrus commented Nov 21, 2025

Added docs

@ptrus ptrus force-pushed the ptrus/feature/providers-show branch from cbc71f7 to f327daf Compare November 25, 2025 17:32
@ptrus ptrus requested a review from matevz November 25, 2025 18:04
@ptrus ptrus force-pushed the ptrus/feature/providers-show branch 2 times, most recently from 926edaa to 52b806e Compare November 25, 2025 18:07
@ptrus
Copy link
Member Author

ptrus commented Nov 25, 2025

Updated

Copy link
Member

@matevz matevz left a comment

Choose a reason for hiding this comment

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

Some suggestions to simplify and unify the outputs. Otherwise looks good to merge IMO!

@ptrus ptrus force-pushed the ptrus/feature/providers-show branch from 52b806e to 5f47524 Compare November 26, 2025 15:17
@ptrus ptrus enabled auto-merge November 26, 2025 15:18
@ptrus ptrus force-pushed the ptrus/feature/providers-show branch from 5f47524 to ac6d03b Compare November 26, 2025 15:20
@ptrus ptrus merged commit aec1603 into master Nov 26, 2025
5 checks passed
@ptrus ptrus deleted the ptrus/feature/providers-show branch November 26, 2025 15:23
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.

rofl: Show providers command

3 participants