A cli for CU Boulder students to sync classes to google calendar, check their courses and see their gpa.
Find a file
2023-08-06 09:41:48 +00:00
.github/workflows chore(deps): update pnpm/action-setup digest to d882d12 2023-08-05 22:52:32 +00:00
docs docs(readme): add calendar image example 2020-05-08 21:00:11 -06:00
src feat: add calendar name option and fix start date 2022-01-09 13:55:40 -07:00
.eslintignore chore: move configs to package json 2020-12-28 18:47:18 -07:00
.eslintrc.js chore: update eslint, add scripts for eslint/formatter 2020-12-28 18:54:26 -07:00
.gitignore feat: initial commit 2020-05-08 14:22:17 -06:00
.npmignore ci: swap to github actions 2020-12-28 18:47:39 -07:00
.prettierignore style: formatter 2020-12-28 19:07:49 -07:00
CHANGELOG.md chore(release): 1.1.0 [skip ci] 2022-01-09 20:57:30 +00:00
LICENSE docs(license): add license 2020-05-08 20:12:57 -06:00
package.json chore(deps): update dependency prettier to v2.8.8 2023-08-06 09:41:48 +00:00
pnpm-lock.yaml chore(deps): update dependency prettier to v2.8.8 2023-08-06 09:41:48 +00:00
README.md docs: add text about keytar deps 2020-12-28 18:48:05 -07:00
renovate.json feat: initial commit 2020-05-08 14:22:17 -06:00
tsconfig.json feat: initial commit 2020-05-08 14:22:17 -06:00

cu-cli

NPM Version Build Status Coverage Status

A command line tool for Unversity of Colorado students to quickly get their GPAs, course details and sync their classes with their Google calendars.

Install

npm i -g cu-cli

or

yarn global add cu-cli

Make sure to install the dependencies need for keytar.

Usage

Firstly you will need to login to your cu account. The details of your account are encrypted on the machine and stored using the system's keyring.

cu-cli login-cu

You can clear your CU login details by running the following command.

cu-cli clean

Then you can easily get your cu or course list.

cu-cli gpa

Returns:

3.8 (95%)
cu-cli courses

Returns:

Computer Systems (CSCI 2400-100) 4 credits  MWF 15:0-15:50
	Person Name - person.name@email.edu
Computer Systems (CSCI 2400-102) 0 credits  M 18:0-18:50
	Person Name - person.name@email.edu
Discrete Structures (CSCI 2824-001) 3 credits  MWF 9:0-9:50
	Person Name - person.name@email.edu
Calculus 2 (MATH 2300-015) 5 credits  M-F 14:0-14:50
	Person Name - person.name@email.edu
    Person Name - person.name@email.edu
General Physics 2 (PHYS 1120-100) 4 credits  MWF 10:0-10:50
	Person Name - person.name@email.edu
General Physics 2 (PHYS 1120-430) 0 credits  T 15:0-15:50
	Person Name - person.name@email.edu
Experimental Physics 1 (PHYS 1140-300) 1 credits  W 16:0-16:50
	Person Name - person.name@email.edu
Experimental Physics 1 (PHYS 1140-302) 0 credits  T 8:0-9:50
	Person Name - person.name@email.edu

Syncing Courses with Google Calendar

You can easily sync your course list with Google Calendar. First you need to authenticate.

cu-cli login-google

Again you can clear your CU and Google login details by running the following command.

cu-cli clean

Then run the following command to sync your events with your calendar!

cu-cli sync

From zero to hero:

A synced calendar