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

feat: add silent flag to enable piping claim data #224

Merged
merged 4 commits into from
Oct 15, 2024

Conversation

gpabst
Copy link
Contributor

@gpabst gpabst commented Oct 11, 2024

Adds a silent flag to rewards claim command to enable piping the claim data output without logs interfering.

What Changed?

Adds a new flag --silent for eigenlayer rewards claim. Converts some printfs in the claim flow to use logger and sets an discarding logger when silent flag is active.

pkg/rewards/claim.go Outdated Show resolved Hide resolved
pkg/rewards/claim.go Outdated Show resolved Hide resolved
pkg/rewards/flags.go Outdated Show resolved Hide resolved
pkg/rewards/claim.go Outdated Show resolved Hide resolved
pkg/rewards/claim.go Outdated Show resolved Hide resolved
@gpabst
Copy link
Contributor Author

gpabst commented Oct 11, 2024

@shrimalmadhur fixed all the feedback, the flag now works globally instead of boxed to just claims commands

pkg/internal/common/flags/common.go Outdated Show resolved Hide resolved
pkg/rewards/flags.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@shrimalmadhur shrimalmadhur left a comment

Choose a reason for hiding this comment

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

lgtm

@gpabst gpabst merged commit 48fa4b3 into master Oct 15, 2024
8 checks passed
@gpabst gpabst deleted the gpabst/claim-silent-flag branch October 15, 2024 16:21
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