3 ms·
This is kind of neat. I appreciate how well it falls into the whole Unix philosophy of small tools that do one thing really well. One thing I’m kind of curious
by brirec 1y ago
This is kind of neat. I appreciate how well it falls into the whole Unix philosophy of small tools that do one thing really well.
One thing I’m kind of curious about from a UI standpoint is why the exponential argument isn’t a double-hyphen flag. It kind of feels like it should be, given all of the other arguments are flags.
- maxbond 1y agoThanks! That was the intention. There's a tool called `retry` which does an even better job by caching stdin so that it can be integrated into shell pipelines. I was thinking of it as a subcommand, like `git pull`. I think of the backoff schedules as different "modes" the command can be put into, each with their own set of arguments. I also made some questionable design decisions and coupled too closely to the CLI argument parser (`clap`), which would make it a big pain to back out of that decision.
- js2 1y agoI also think `retry` is the most widely known of these? https://formulae.brew.sh/formula/retry https://formulae.brew.sh/formula/retry https://manpages.debian.org/trixie/retry/retry.1.en.html https://manpages.debian.org/trixie/retry/retry.1.en.html
- maxbond 1y agoProbably, it's the only one that's in OS package managers to my knowledge.