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

Use PostPasteResponse utility methods to improve json output #7

Merged
merged 5 commits into from
Apr 6, 2024

Conversation

nain-F49FF806
Copy link
Contributor

Greetings,

Like discussed previously, this commit adds pasteurl, and deleteurl to the --json output.

Have added a baseurl field to PostPasteResponse. This makes it fully self-contained in regard to how we use it.
Since pasteurl, and deleteurl can be constructed dynamically using above, I have left them out of the struct.

Best regards.

Adding convenience fields dynamically to output.
Since these can be easily constructed from existing fields
in the PostPasteResponse struct, they may not need to be in the struct themselves.
Copy link
Owner

@Mydayyy Mydayyy left a comment

Choose a reason for hiding this comment

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

Greetings,

I was just about to ask if you could update the Readme as well 👍.

Changes look good to me, just one minor note.

Thank you for your contribution!

Best Regards
Mydayyy

src/privatebin.rs Outdated Show resolved Hide resolved
@Mydayyy Mydayyy merged commit 56e165d into Mydayyy:master Apr 6, 2024
1 check 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