{"id":22361316,"url":"https://github.com/kei-k23/cron-job-cli","last_synced_at":"2026-02-09T08:04:15.130Z","repository":{"id":264891320,"uuid":"894596482","full_name":"Kei-K23/cron-job-cli","owner":"Kei-K23","description":"Learn how cron job work by building basic cron job cli in Java","archived":false,"fork":false,"pushed_at":"2024-11-26T16:28:06.000Z","size":17,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T20:42:49.682Z","etag":null,"topics":["cronjob","java","scheduler"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kei-K23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-11-26T16:26:49.000Z","updated_at":"2025-01-18T12:06:24.000Z","dependencies_parsed_at":"2024-11-26T17:41:47.621Z","dependency_job_id":null,"html_url":"https://github.com/Kei-K23/cron-job-cli","commit_stats":null,"previous_names":["kei-k23/cron-job-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kei-K23/cron-job-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Fcron-job-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Fcron-job-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Fcron-job-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Fcron-job-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kei-K23","download_url":"https://codeload.github.com/Kei-K23/cron-job-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Fcron-job-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266626115,"owners_count":23958344,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cronjob","java","scheduler"],"created_at":"2024-12-04T16:29:19.158Z","updated_at":"2026-02-09T08:04:15.074Z","avatar_url":"https://github.com/Kei-K23.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Java Cron Job Runner CLI**\n\nA fully functional, feature-rich cron job runner CLI built from scratch in Java, without using any third-party libraries. This tool allows you to schedule and manage tasks using standard cron expressions.\n\n## **Features**\n- Parse and validate cron expressions (e.g., `* * * * *`).\n- Schedule tasks and execute them at specified intervals.\n- CLI interface for adding, listing, and managing tasks.\n- Logs task execution details.\n- Built entirely with Java standard libraries.\n\n\n## **Getting Started**\n\n### **Prerequisites**\n- Java Development Kit (JDK) 8 or higher.\n- A terminal or command prompt.\n\n### **Running the Project**\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/Kei-K23/cron-job-cli\n   cd cron-job-cli\n   ```\n\n2. Compile the Java files:\n   ```bash\n   javac -d out src/main/java/org/example/**/*.java\n   ```\n\n3. Run the program:\n   ```bash\n   java -cp out org.example.Main\n   ```\n\n## **Usage**\n\nOnce the application starts, use the CLI to manage your cron jobs.\n\n### **Options:**\n1. **Add Task**: Add a new task with a cron expression and name.\n2. **List Tasks**: View all scheduled tasks.\n3. **Exit**: Quit the CLI.\n\n### **Example Cron Expression**\n| Cron Field       | Value   | Description                     |\n|-------------------|---------|---------------------------------|\n| Minute           | `*`     | Every minute                   |\n| Hour             | `*`     | Every hour                     |\n| Day of Month     | `*`     | Every day of the month          |\n| Month            | `*`     | Every month                    |\n| Day of Week      | `*`     | Every day of the week           |\n\n- **Run every minute**: `* * * * *`\n\n## **Example Workflow**\n1. Start the program.\n2. Add a task with a cron expression (e.g., `* * * * *`) and a task name.\n3. Wait for the task to execute. Logs will appear in the terminal.\n4. List tasks to verify scheduling.\n\n## **Future Improvements**\n- Add support for persistence (save tasks to a file).\n- Allow task removal and updates.\n- Implement multi-threading for concurrent task execution.\n- Write logs to a file for better tracking.\n\n## **Contributing**\nFeel free to fork this repository, submit issues, or contribute by opening a pull request.\n\n## **License**\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkei-k23%2Fcron-job-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkei-k23%2Fcron-job-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkei-k23%2Fcron-job-cli/lists"}