Releases: dbohdan/recur
v2.0.4
v2.0.1
v2.0.0
- Minor breaking change in the CLI: recur will process the options
-h
/--help
and-V
/--version
like other options. This means they must be given before the first positional argument. In version 1.x, these options were special and processed in any position. It was supposed to make help easier to access, but in practice it caused problems more than helped. What this change means is that the option-h
in the commandrecur ls -h
used to make recur print help and exit; now-h
is passed tols
. - Replaced "flag" with "option" in the messages.
v1.1.1
v1.1.0
v1.0.0
v0.9.0
v0.8.0
Breaking changes to the CLI
The argument syntax has changed. -xbar
and --foo=bar
are no longer accepted. Please use -x bar
and --foo bar
. Short flags can also no longer be combined, except for -vv
and -vvv
. See the technical details below for why this change was made.
Other changes:
- Removed
-n
and--tries
. You can use either-a
or--attempts
. - Changed the
-d
/--delay
behavior to extend the maximum delay when it is shorter. - Increased the default number of attempts from 5 to 10.
Logging improvements
- Added verbosity level 3 to display internal configuration on startup.
- Improved duration formatting to remove trailng zeroes and units.
1h0m0s
now displays as1h
. Zero durations show as0
instead of0s
.
Technical details about the CLI
This release introduces a custom argument parser to address issues we had with Kong 1.2.1 (negative numbers treated as flags—alecthomas/kong#315; passthrough
passing through a flag as the command—alecthomas/kong#463). After evaluating several Go CLI libraries as potential alternatives, I found that none of them could fully replicate what we did with argparse in Python. The issues with other libraries center around passthrough and a lack of customization (for example, having an easy way to hide a default value). Since our needs are pretty simple—no subcommands or mutual exclusion logic—I came to the conclusion that a custom parser would be more maintainable than working around the limitations of existing libraries.
v0.7.0
This release makes significant breaking changes to the CLI. I plan to limit such changes going forward.
- CLI:
- Added a warning in verbose mode when the command starts with
-
. This is a partial workaround for alecthomas/kong#463. - Renamed short flags: attempts from
-t
to-n
and timeout from-w
to-t
. I believe the new short flags will be easier to remember and pair up better the with long flags. For attempts, I chose-n
because-a
evokes "all". - Made only negative timeouts infinite. A timeout of zero is now instant. This is consistent with the attempt count and may be useful in scripts and for debugging.
- Changed the arguments that took a number of seconds to take Go duration string (
1h2m3s
).
- Added a warning in verbose mode when the command starts with
- Log:
- Started rounding durations.
- Release:
- Added macOS binaries.
- Changed the Windows suffix from
i386
tox86
used by Microsoft.