Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 32 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,47 @@ Run a command without installing:
npx @nbtca/prompt --help
```

## Interactive mode

Run `nbtca` with no arguments to open the full-screen client. Press `1`–`5` or
`Tab` to switch tabs, and `?` to list every key.

- **Home**: today's classes and the next club events.
- **Schedule**: the current term, week, and next break from the school
calendar. Log in to the campus system to see your timetable and export it as
an `.ics` file.
- **Events**: the next event with a countdown, plus week, month, search,
history, and a one-year activity heatmap.
- **Docs**: the NBTCA knowledge base, readable and searchable in the terminal.
It is cached locally and served from a mirror when GitHub is unreachable.
- **Settings**: language, icon and color modes, and version info.

Events, docs, and the school calendar stay readable offline from the last
successful fetch.

## Commands

```text
nbtca events [--json]
nbtca events [--today|--week|--month] [--search=<q>] [--next=<n>] [--json]
nbtca events --heatmap
nbtca docs
nbtca status
nbtca status [--watch] [--json]
nbtca schedule login
nbtca schedule status
nbtca schedule terms
nbtca schedule export --term=2026:3 --week-one=YYYY-MM-DD
nbtca schedule export --term=2026:3 --week-one=YYYY-MM-DD [--output=<path>]
nbtca schedule logout
nbtca website|github|roadmap|repair [--open]
nbtca theme icon auto|ascii|unicode
nbtca theme color auto|on|off
nbtca theme reset
nbtca lang zh|en
nbtca update
```

Use `--plain` for stable output without color. `schedule export --one-shot`
avoids reading or saving a campus session.
`nbtca --help` lists every flag. Use `--plain` for stable output without color
and `--no-logo` to skip the startup logo. `schedule export --one-shot` avoids
reading or saving a campus session.

Prompt never stores passwords. Persisted sessions contain only a masked account
hint and a CookieJar, protected with user-only permissions on POSIX systems.
Expand Down
Loading