topgrade-rs / topgrade

Upgrade all the things
GNU General Public License v3.0
1.7k stars 113 forks source link

Add support for Atuin #824

Open sbstn87 opened 2 weeks ago

sbstn87 commented 2 weeks ago

I want to suggest a new step

https://github.com/atuinsh/atuin

Which tool is this about? Where is its repository?

Atuin replaces your existing shell history with a SQLite database, and records additional context for your commands. Additionally, it provides optional and fully encrypted synchronisation of your history between machines, via an Atuin server.

Which operating systems are supported by this tool?

Linux, MacOS

What should Topgrade do to figure out if the tool needs to be invoked?

Check if the app is installed

Which exact commands should Topgrade run?

atuin-update

Relevant thread: https://github.com/atuinsh/atuin/issues/2121

SteveLauC commented 2 weeks ago

I tried to implement this today, but didn't find too much documents on how this new atuin-update binary should be used, could you please give me the output of:

$ atuin-update --help

And

  1. Does it have a dry-run mode? i.e. print what will be done and exit
  2. Does it need a confirmation, i.e., by default, users need to type yes/y to confirm the update