-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Improve list cmd - Add required token flag to list and sync cmd
- Loading branch information
Showing
746 changed files
with
383,117 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,51 @@ | ||
# EpiCal | ||
A simple to synchronize your Epitech events with Google calendar. | ||
A simple tool to synchronize your Epitech events with Google calendar. | ||
|
||
# Requirements | ||
|
||
#### Epitech token | ||
To run this script you have to use your Epitech auto login token which can be found [here](https://intra.epitech.eu/admin/autolog). | ||
The URL is of the form `https://intra.epitech.eu/auth-XXX...` | ||
The token used by the script is only the right part of the URL after the `auth-` part. | ||
|
||
#### Google calendar credentials | ||
|
||
You have to enable the Google Calendar API for your account. | ||
You can follow the [Google developer QuickStart](https://developers.google.com/calendar/quickstart/go) and click **ENABLE THE GOOGLE CALENDAR API** button. | ||
Then in the resulting dialog click **DOWNLOAD CLIENT CONFIGURATION** and save the file credentials.json to your working directory. | ||
|
||
## Installation | ||
```go | ||
You have to install | ||
```bash | ||
go build . | ||
``` | ||
|
||
## Commands | ||
|
||
### Sync | ||
A command to synchronize Epitech events with your Google calendar. | ||
```go | ||
```bash | ||
./epical --token YOUR_EPITECH_AUTOLOGIN_TOKEN sync | ||
``` | ||
|
||
### List | ||
A command to list Epitech events. | ||
```go | ||
```bash | ||
./epical --token YOUR_EPITECH_AUTOLOGIN_TOKEN list | ||
``` | ||
|
||
### Clear | ||
Delete all events previously created by EpiCal. | ||
```go | ||
./epical --token YOUR_EPITECH_AUTOLOGIN_TOKEN clear | ||
``` | ||
```bash | ||
./epical clear | ||
``` | ||
|
||
## Options | ||
|
||
#### Credentials | ||
|
||
You can specify the Google Calendar API `credentials.json` file path using the `--credentials` or `-c` option. | ||
|
||
```bash | ||
./epical --token YOUR_EPITECH_AUTOLOGIN_TOKEN --credentials ~/credentials.json sync | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.