https://github.com/oliveroneill/bert
An assistant for your terminal to help solve errors
https://github.com/oliveroneill/bert
node-notifier nodejs notifications script terminal
Last synced: 4 months ago
JSON representation
An assistant for your terminal to help solve errors
- Host: GitHub
- URL: https://github.com/oliveroneill/bert
- Owner: oliveroneill
- License: mit
- Created: 2017-10-13T09:06:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-07T20:54:18.000Z (about 7 years ago)
- Last Synced: 2025-08-03T23:58:03.614Z (6 months ago)
- Topics: node-notifier, nodejs, notifications, script, terminal
- Language: JavaScript
- Homepage:
- Size: 339 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bert
[](https://travis-ci.org/oliveroneill/bert)
Bert (Better Error Resolution in Terminals) is a program that will monitor your terminal output and send you
helpful tips on how to solve errors.
This is still a work in progress. Currently Bert can identify basic
errors and will send you a notification with a link to the StackOverflow
search results. We have plans to extend this functionality to deliver
helpful answers and identify a large range of tests.

## Install
Currently the project is not available on `npm` yet, as its still in
development and we'd like to wait until it can handle a greater
spectrum of errors. See the [development section](#development) below for how
to install manually.
## Running
Run in your terminal:
```bash
bert
```
This will then start your `bert` session and any errors that appear
in your terminal will trigger `bert` to send you notifications which
allow you to quickly find a solution.
## OS Support
Currently only tested on MacOS. It should run fine on Linux. Unfortunately we
are using `script` to watch terminal output and I don't believe this is
included in Windows, we plan to add support in the future.
## Development
Install:
```bash
npm i
```
Build the package (currently used for [Flow](https://flow.org/)):
```bash
npm run build
```
Link the package so that you don't have to re-install each time:
```bash
npm link
```
Test:
```bash
npm test
```
Run:
```bash
bert
```
## TODO
- Add better search functionality so that Bert can give real recommendations
- Windows compatibility
- More error identifiers. Consider looking at [VSCode problem matchers](https://code.visualstudio.com/updates/v1_11#_tasks)
- To implement:
- Java: `^(.+\\.java):(\\d):(?:\\s+(error)):(?:\\s+(.*))$`, position 4
- Make: `^([^:]+):(\d+):(\d+): error: (.+)$`, position 4
- C: `?[\\/0-9a-zA-Z\\._]+):(?\\d+):(?\\d+):\\s+(?.+)`, position 4
- More [here](https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/tasks/common/problemMatcher.ts#L1086)