Releases: qrichert/cronrunner
Releases · qrichert/cronrunner
Version 2.11.0
Version 2.10.0
- Add new '--tag' mode. This is a manual job identifier. Contrary to
'fingerprint', a tag is stable even if the job changes. This is great
for scripts, but it does not guarantee that the command remains the
same. - Add '--as-json' option for '--list-only'. This targets scripts as
well, by making jobs easily parsable.
Version 2.9.0
- Add new '--safe' mode. The main purpose of this is for usage in
scripts. The crontab may change more than the scripts, which can be
dangerous if refering to jobs by their positional ID. When using the
new fingerprint identifier, a run will fail if the job changed. - Split help into short ('-h') and long ('--help') message. It's nicer
to not have long text printed when you only want to see the args. - Add '--help' to README.
- Add implicit trailing newline to paged output if none in text.
- Minor code refactorings.
Version 2.8.0
- Add '--list-only' option to list jobs and exit. Sometimes you may want
the list of runnable jobs, without actually running any. This is the
option juste for that (shorthand: '-l'). - Add docstrings to coloring functions.
- Improve exit code handling.
- Clean up and factorize imports.
- Use 'unsafe {}' for 'env::set_var()'.
- Simplify paths to fixtures and tmp.
Version 2.7.0
- Use default pager to print '--help', if available. '--help' is getting
a bit verbose, and you had to scroll to the top to find the commands.
'less' starts at the top by default, and doesn't pollute the screen
after you quit. - Support no-color mode. This mode is entered by setting the 'NO_COLOR'
environment variable to a non-empty value. - Update installation instructions in README.
- Minor code refactorings.
Version 2.6.0
- Enable passing job UID directly as CLI argument. This is very
convenient if you often run the same job, or need to run a job
multiple times and know its number. - Enable running jobs in detached mode. This is meant for long-running
jobs you don't want to keep in the foreground, blocking a terminal. - Enrich the '--help' message to include the new features.
This release also contains minor code refactorings:
- Improve CLI arguments handling (to enable the new arguments).
- Move CLI-related source files into dedicated module.
- Remove superfluous numeric type suffixes.
- Implement the 'Error' trait for 'ReadError' and simplify errors by
using static strings instead of allocating 'String's.
Version 2.5.0
- Don't show menu if job selection is given through stdin. This doesn't
change the current behaviour, but it looks way better.
Version 2.4.0
Version 2.4.0
- Keep duplicate consecutive sections separate instead of merging them
and displaying only the first. - Refactor code for parser's core loop, job number parsing, CLI menu
printing, CLI 'help' message.
Version 2.3.0
- Color examples in '--help'.
- Update demo screenshot in README.
- Enable build of Linux executable through Docker (to support glibc
>=2.31 and Ubuntu 20.04). - Perform minor refactorings and add new unit tests.
Version 2.2.1
- Fix formatting of section titles. The ANSI escape sequence was missing
the terminating 'm' character. Some terminals were even displaying the
whole escape sequence as a consequence, and not failing silently. - Use default text color instead of forcing section titles to bright
white. This lets users with light background see the title. - Improve documentation.
- Do minor code refactorings.
Version 2.2.0
- Enable splitting jobs into sections with section comments (###).
- Add '--help' and '--version' CLI arguments.
- Right-align job numbers in selection menu.
- Fix incorrect parsing of jobs (tabs are now recognized as whitespace,
and lines that look like jobs, but aren't jobs, are now ignored).
Version 2.1.1
- Fix bad handling of variables (use env)
- Fix display of read error
Version 2.1.0
- Allow variable identifiers and values to be quoted
- Add integration tests
- Set up basic CI
Version 2.0.0
Complete rewrite in Rust :D!
Still misses some tests, but it has decent coverage already.
Version 1.1.4
- Fix a bug that could lead to the wrong job being selected. The wrong
job would be equal to the right one, but variables may have differed. - Use lowercase 'cronrunner' name.
- Some code refactorings.
Version 1.1.3
- Fix color of dot (.) after job number in selection menu (both dot and
number are now green) - Increase test coverage to 100%
- Update pre-commits:
- Replace isort, black and flake8 by ruff
- Introduce Pyright static type checker
Version 1.1.2
fix: Fix split error when variable values contain '='
Version 1.1.1
fix: Run jobs from user's home directory
Version 1.1.0
feat: Take SHELL variable into account
Version 1.0.0
chore: Enforce maxiumum line length in Markdown documents
Version 0.1.0
v1