Hi Tobias, Tobias Geerinckx-Rice <m...@tobias.gr> writes:
>> On 10 Jul 2025, at 19:14, Maxim Cournoyer <ma...@guixotic.coop> wrote: >> Maybe i could run this once and cache the result? I think I've seen this >> pattern before for bash completion. > > With sudo? I'd find it surprising to the point of annoying if hitting > <Tab> popped up a password prompt that I can't escape with muscle > memory. Even once. With our without sudo, depending on whether the user put sudo in front :-). So something like: $ sudo herd status TAB -> prompt for sudo password to retrieve list of services $ herd status TAB -> completes the unprivileged user shepherd services, if any It seems prompting for the password in the first case is not that bad, as whatever service would have liked queried instead would have then prompted for the password anyway, because they explicitly used sudo. Does that sound reasonable to you? -- Thanks, Maxim