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
- Host: GitHub
- URL: https://github.com/devanshbatham/watson
- Owner: devanshbatham
- License: mit
- Created: 2023-07-29T19:32:23.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-09T09:01:42.000Z (almost 3 years ago)
- Last Synced: 2024-11-08T13:40:31.486Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 628 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Watson
Watson is a utility for note management and search from your terminal
📋 Requirements
🏗️ Installation
⛏️ Usage

# 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"
```