The only solution I can find that gets close to my requirements is
https://github.com/ergochat/readline, but AFAICT it does not handle updates
to the on-disk history file by concurrently executing processes.

On Sat, Feb 10, 2024 at 6:55 PM Kurtis Rader <kra...@skepticism.us> wrote:

> I'm looking for a package that will read/write a flat file database of
> shell commands from multiple processes. I could take an existing
> implementation in a different language, such as the one used by Bash or
> Fish, and rewrite it in Go but was hoping someone has already done this.
> The specific structure (e.g., YAML, JSON, something else) isn't important.
> I'm just looking for an implementation that is known to correctly handle
> appending new entries from concurrently running processes and rewriting the
> file when entries are deleted.
>
> --
> Kurtis Rader
> Caretaker of the exceptional canines Junior and Hank
>


-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD-qpaHvR-6RrKrf_VzdMGVpYediekNNZ7Ewo6Odg0XW6w%40mail.gmail.com.

Reply via email to