https://github.com/webmatze/crontimeline
Display your crontab as an ordered timeline
https://github.com/webmatze/crontimeline
Last synced: about 1 month ago
JSON representation
Display your crontab as an ordered timeline
- Host: GitHub
- URL: https://github.com/webmatze/crontimeline
- Owner: webmatze
- License: bsd-2-clause
- Created: 2020-11-03T23:22:44.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-03T23:24:11.000Z (over 5 years ago)
- Last Synced: 2025-01-09T10:28:11.017Z (over 1 year ago)
- Language: Ruby
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Crontimeline
Crontimeline is a simple tool to display your crontab entries in an ordered timeline.
## Install
```shell
gem install crontimeline
```
## Usage
### From within the Ruby code
If you want to parse a local crontab file and iterate over its contents in an ordered way:
```ruby
crontab_file = File.open 'path/to/crontab'
cronjobs = CronTimeline.parse crontab_file
cronjobs.sort.each do |cronjob|
puts cronjob.next_time
end
```
### From the command line
If you want to see a timeline of your crontab
```shell
crontimeline
```
## Semantic Versioning
Crontimeline attempts to follow [semantic versioning](https://semver.org) and
bump major version only when backwards incompatible changes are released.