l0b0 / cronlist Goto Github PK
View Code? Open in Web Editor NEWList upcoming cron tasks
Home Page: https://gitlab.com/victor-engmark/cronlist
License: GNU General Public License v3.0
List upcoming cron tasks
Home Page: https://gitlab.com/victor-engmark/cronlist
License: GNU General Public License v3.0
It would be nice to print lines like
at '2000-01-01 00:00:00' <<< 'updatedb'
to be able to duplicate the command at arbitrary times easily.
Possibly by reimplementing in Rust
The C implementation checks each cron entry for a match for every minute. The following algorithm should be more efficient:
With a fixed number N of entries to print, C cron entries and M minutes between now and the Nth cron run, this algorithm should be O(N+C).
Should remember to return iterators rather than lists where applicable, so that it can process everything asynchronously.
Feature progress:
1
1-3
= 1,2,3
1-5/2
= 1,3,5
*
Nov
= 11
, Mon
= 1
, Sun
= 0
(not 7!)7
= 0
@monthly
command
--entries
--help
--from
, --to
Non-functional requirements:
Once these are done, the following should probably be separate tickets:
@midnight
. Are these documented outside of man 5 crontab
, or do I have to read the source?Entry.command
in Run
impl fmt::Display for Run
instead of printing its properties.Self
from fn new
blacklisted_name
to contain "data".cyclomatic-complexity-threshold
to maybe 2 or 4.single-char-binding-names-threshold
to 0.too-many-arguments-threshold
to maybe 5.maybe_infinite_iter
, missing_docs_in_private_items
, option_unwrap_used
, print_stdout
cast_possible_truncation
, cast_possible_wrap
, cast_precision_loss
, cast_sign_loss
, decimal_literal_representation
, else_if_without_else
, empty_enum
, enum_glob_use
, fallible_impl_from
, filter_map
, float_arithmetic
, float_cmp_const
, if_not_else
, indexing_slicing
, int_plus_one
, integer_arithmetic
(need to read up on how to do this securely), invalid_upcast_comparisons
, items_after_statements
, mem_forget
, mut_mut
, mutex_integer
, nonminimal_bool
, option_map_unwrap_or
, option_map_unwrap_or_else
, pub_enum_variant_names
, range_plus_one
, replace_consts
, result_map_unwrap_or_else
, result_unwrap_used
, shadow_reuse
, shadow_same
, shadow_unrelated
, similar_names
, single_match_else
, string_add
, string_add_assign
, stutter
, unicode_not_nfc
, unseparated_literal_suffix
, use_debug
, use_self
, used_underscore_binding
, wrong_pub_self_convention
Will not be implemented, at least for now:
@reboot
- this will have to be considered infinitely into the future.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.