Request for enhancement: atuin info --json

I would like to write commands that use my atuin sqlite database, without having to parse the format of atuin info. To facilitate that, it would be helpful if atuin info was available in json format (or tsv, but I’d prefer json).

That way, I could advise a colleague to run a command like:

sqlite $(atuin info --json | jq .clientDBPath) SELECT command FROM history WHERE...

The simplest way I came up with to do this currently is:

sqlite $(atuin info | grep -o '/.*.db')

Which won’t work on windows and relies on the *.db file naming convention, and the fact that there’s only one db file.

1 Like