{"id":20961373,"url":"https://github.com/perbu/wfh","last_synced_at":"2025-03-13T06:44:14.311Z","repository":{"id":193505638,"uuid":"688935513","full_name":"perbu/wfh","owner":"perbu","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-24T05:52:44.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T00:46:54.750Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/perbu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-09-08T12:19:29.000Z","updated_at":"2024-04-24T05:52:40.000Z","dependencies_parsed_at":"2023-09-08T13:52:34.096Z","dependency_job_id":"a807bde4-dc2c-415a-b27d-51bea0f63384","html_url":"https://github.com/perbu/wfh","commit_stats":null,"previous_names":["perbu/wfh"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fwfh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fwfh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fwfh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fwfh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perbu","download_url":"https://codeload.github.com/perbu/wfh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243358212,"owners_count":20277991,"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":[],"created_at":"2024-11-19T02:03:44.745Z","updated_at":"2025-03-13T06:44:14.290Z","avatar_url":"https://github.com/perbu.png","language":"Go","readme":"# WFH Calendar CLI\n\nA simple Go CLI to quickly register a \"Work From Home\" event in your Google Calendar.\n\n## Description\n\nThis CLI tool is designed for developers who want a quick way to mark a day as \"Work From Home\" \nin their Google Calendar.\n\n\n## Features\n\n- Integrates with Google Calendar API.\n- Stores configuration in `~/.wfh`, making it accessible across the machine.\n- Supports OAuth2 for authentication.\n- Automatically saves and reuses authentication tokens.\n- Allows embedding of Google credentials in the binary for simpler distribution.\n- Works on Windows, macOS, and Linux.\n\n## Prerequisites\n\n- Go (v1.21 or later)\n- A Google account with Calendar API access.\n- `credentials.json` obtained from the [Google Developer Console](https://console.developers.google.com/).\n\nYou can skip DefaultMessage and User if you want to use the defaults. The default for User is to use $USER.\n\n## Usage\n\n1. Run the CLI for the first time, we use -list not to create a new event but for auth/authz.\n   ```bash\n   wfh -list\n   ```\n   On the first run, you'll be prompted to authorize the application to access your Google Calendar. \n\n2. To mark today as a WFH day:\n   ```bash\n   wfh [--date 2023-03-01] \u003coptional message\u003e\n   ```\n3. Check Google Calendar. You should see a new all-day event titled with your default message.\n\n## Contributions\n\nFeel free to open an issue or submit a pull request if you have suggestions, improvements, or bug fixes. \nAll contributions are welcome! \n\n## License\n\nThis project is licensed under the MIT License. See [LICENSE](LICENSE.md) for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperbu%2Fwfh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperbu%2Fwfh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperbu%2Fwfh/lists"}