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

feature request: dissect event #38

Open
patrickReiis opened this issue Sep 23, 2024 · 2 comments
Open

feature request: dissect event #38

patrickReiis opened this issue Sep 23, 2024 · 2 comments

Comments

@patrickReiis
Copy link
Contributor

I don't know if this is out of scope of nak, but I'll ask it regardless:

Create a flag that if present, get not only the kind 1, but all of the events in a thread.

If we have something like:
Event A <- Event B <- Event C

And I do:
nak req Event C --get-all

Then it returns A, B and C.

@fiatjaf
Copy link
Owner

fiatjaf commented Sep 24, 2024

Maybe we can find a good way to accomplish that doesn't involve bloating the interface and mixing it up with that of a microblogging client. What was the use case that brought you here?

@patrickReiis
Copy link
Contributor Author

The use case would be to store threads in a fast way.

Say you have a thread that you want to save locally, you would need to get the id of a reply, put it inside a file, then get the id of the other reply, put it on a file, all the way until you get to the root.

With a "--get-all" flag, you would be able to get the entire thread and save it to a file or any other destination.

A - root post/original post
B - reply of A
C - reply of B

Then, nak req Event C --get-all gets both A, B and C (I just explained again to be more clearer)

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

2 participants