ayoisaiah / focus

A fully featured productivity timer for the command line, based on the Pomodoro Technique. Supports Linux, Windows, and macOS.
https://github.com/ayoisaiah/focus
MIT License
398 stars 20 forks source link

csv #9

Open gedw99 opened 1 year ago

gedw99 commented 1 year ago

would be good if the data instead of being in bolt can be in a csv.

the use case is saving the events in git and committing them.

Its possible. to have both because the csv is just he events, which then is used to modify the bolt db.

gedw99 commented 1 year ago

If I did not explain this very well please just ask me.

ayoisaiah commented 1 year ago

Do you mean exporting the data to a CSV file? Or making a CSV file the primary data store?

gedw99 commented 1 year ago

hey :)

I am the one that sent you an email...

Here is the flow:

make a change event ( with payload) as a piece of data ( struct). sent to nats, which stores it. nats can run embedded with anything btw.

THen anything else running can: subscribe to the nats topic append to a csv

--

so if you embed nats then ALL the of the flow can be done inside your app.

But if others want to do other things and even run them somewhere else it's also possible. like make a invoice or a chart or anything really.

Basically its now plugable by just subscribing to the events.

GrimPixel commented 5 months ago

Maybe exporting statistics to TSV? It doesn't require quoting the comma.

ironhak commented 1 week ago

Where are statistics located? How can I export them?