An open API service indexing awesome lists of open source software.

https://github.com/devanshbatham/watson

Watson is a utility for note management and search from your terminal
https://github.com/devanshbatham/watson

Last synced: 9 months ago
JSON representation

Watson is a utility for note management and search from your terminal

Awesome Lists containing this project

README

          


Watson


Watson is a utility for note management and search from your terminal


📋 Requirements
🏗️ Installation
⛏️ Usage


![watson](https://github.com/devanshbatham/Watson/blob/main/static/banner.png?raw=true)

# Requirements

- Python 3.x
- `argparse` module
- `sqlite3` module
- `rich` module

# Installation

```sh
git clone https://github.com/devanshbatham/watson
cd watson
sudo chmod +x setup.sh
./setup.sh
```

# Usage

```sh
watson [subcommand] [options]
```

## Subcommands




Subcommand
Description


init
Create the notes table in the database


add
Add a new note to the database


view
View all notes in the database


delete
Delete notes from the database


search
Search notes in the database for a keyword

For options and arguments of each subcommand, run:

```sh
watson [subcommand] --help
```

## Examples

### Initializing the Database

```sh
watson init
```

### Adding a Note

```sh
watson add "This is a new note" -t "tag1, tag2"
```

### Viewing Notes

```sh
watson view
```

### Deleting Notes

```sh
watson delete [options]
```

- Delete all notes with a specific tag:

```sh
watson delete -t "tag1"
```

- Delete all notes:

```sh
watson delete -a
```

- Delete note with specified ID:

```sh
watson delete -i 3
```

### Searching Notes

```sh
watson search "keyword"
```