yay v8.1115 - libalpm v11.0.1
I would like to do something like yay -Qu | wc -l to show a number of updates.
The problem is that this command doesn't work properly if I don't have an internet connection. It fails with Get .... Temporary failure in name resolution.
The solution for other AUR helpers is to set the quiet flag, or drop the error logs with 2>. A similar solution under yay would be useful.
Everything is on stdout at the moment. Correctly splitting output between the streams is something I've been meaning to do.
Is this hard to achieve?
It's not hard per se but it does involve going through every single print statment and making sure it's doing the right thing. And changing all that code then makes conflicts for anything else being developed at the same time. So I'll at least wait on the config changes to be finished before hand.
Ping me if you would like help cleaning this up after the config changes are landed... I have some free time on my hands
Most helpful comment
Everything is on stdout at the moment. Correctly splitting output between the streams is something I've been meaning to do.