{"id":21504409,"url":"https://github.com/keilerkonzept/cron-wait","last_synced_at":"2025-03-17T14:19:30.268Z","repository":{"id":80988873,"uuid":"278469987","full_name":"keilerkonzept/cron-wait","owner":"keilerkonzept","description":"Waits (once) until a given cron expression would trigger. single binary, no dependencies. osx \u0026 linux \u0026 windows. #golang #cli","archived":false,"fork":false,"pushed_at":"2023-03-18T05:56:03.000Z","size":255,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T23:52:44.623Z","etag":null,"topics":["cli","cron","crontab","golang","self-contained","wait"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keilerkonzept.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-09T21:01:08.000Z","updated_at":"2023-11-13T05:51:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"bf4586aa-d16f-47e0-b329-52d1ae09f637","html_url":"https://github.com/keilerkonzept/cron-wait","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keilerkonzept%2Fcron-wait","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keilerkonzept%2Fcron-wait/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keilerkonzept%2Fcron-wait/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keilerkonzept%2Fcron-wait/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keilerkonzept","download_url":"https://codeload.github.com/keilerkonzept/cron-wait/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244047646,"owners_count":20389206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cron","crontab","golang","self-contained","wait"],"created_at":"2024-11-23T18:59:23.882Z","updated_at":"2025-03-17T14:19:30.235Z","avatar_url":"https://github.com/keilerkonzept.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cron-wait\n\nA tiny tool that waits until a given cron expression would trigger, and then just exits. If multiple expressions are given, it waits until the _first_ (earliest) match.\n\n![image](doc/screenshot.png)\n\n## Examples\n\n```sh\n$ cron-wait \"*/5 * * * *\"\n[cron-wait] 2020/07/10 11:59:29.965045 waiting 30.035156s until next match (2020-07-10T12:00:00+02:00) of cron expression [\"*/5 * * * *\"]\n[cron-wait] 2020/07/10 12:00:00.966919 done\n```\n\n```sh\n$ cron-wait -print-next-match-and-exit \"*/3 * * * *\"\n2020-07-10T12:48:00+02:00\n```\n\n```sh\n$ cron-wait -print-delta-and-exit \"@hourly\"\n3308.674034\n```\n\n## Contents\n\n- [Get it](#get-it)\n- [Usage](#usage)\n\n## Get it\n\nUsing go get:\n\n```bash\ngo get -u github.com/keilerkonzept/cron-wait\n```\n\nOr [download the binary for your platform](https://github.com/keilerkonzept/cron-wait/releases/latest) from the releases page.\n\n## Usage\n\n```text\ncron-wait [OPTIONS] [CRON_EXPRESSION [CRON_EXPRESSIONS...]]\n\nUsage of cron-wait:\n  -dots\n    \tPrint dots to stdout while waiting\n  -format string\n    \tTimestamp format (default \"2006-01-02T15:04:05Z07:00\")\n  -print-delta-and-exit\n    \tOnly print the duration (in seconds) until the next expression match and exit (without waiting)\n  -print-next-match-and-exit\n    \tOnly print the timestamp of the next expression match and exit (without waiting)\n  -q\t(alias for -quiet)\n  -quiet\n    \tSuppress all output\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeilerkonzept%2Fcron-wait","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeilerkonzept%2Fcron-wait","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeilerkonzept%2Fcron-wait/lists"}