Skip to content

A simple and fast command line tool to keep track of your daily events without leaving the terminal

License

Notifications You must be signed in to change notification settings

juancebarberis/bita

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bita

workflow status

A simple, fast and offline command line tool to keep track of your daily events without leaving the terminal.

(My first Rust adventure)

Installation

Via curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/juancebarberis/bita/master/tools/install.sh)"

Via wget

sh -c "$(wget https://raw.githubusercontent.com/juancebarberis/bita/master/tools/install.sh -O -)"

If you got some permission denied error, running the script with sudo may help.

After installation success, write bita in your terminal, and it should display the all the help info.

Usage

Create new entries with the new command.

$ bita new "Helped Ariel with a database migration issue"

Entry recorded successfully f3e1e42d-197d-46ce-9d67-a62e0ecaa5f6

Retrieve them with the all command.

$ bita all

f3e1e42d-197d-46ce-9d67-a62e0ecaa5f6 (Timestamp: 2024-01-14T09:32:00-03:00)
Helped Ariel with a database migration issue

b8493fe4-3959-491f-b9fb-1ddff6a8faf2 (Timestamp: 2024-01-13T10:11:00-03:00)
Meeting with the finance team 💸

Read one entry with get.

$ bita get b8493fe4-3959-491f-b9fb-1ddff6a8faf2

b8493fe4-3959-491f-b9fb-1ddff6a8faf2 (Timestamp: 2024-01-13T10:11:00-03:00)
Meeting with the finance team 💸

$ bita get --latest

f3e1e42d-197d-46ce-9d67-a62e0ecaa5f6 (Timestamp: 2024-01-14T09:32:00-03:00)
Helped Ariel with a database migration issue

Delete an entry following the same idea.

$ bita delete f3e1e42d-197d-46ce-9d67-a62e0ecaa5f6

Entry deleted successfully f3e1e42d-197d-46ce-9d67-a62e0ecaa5f6

Or if you had a mistake, rapidly delete the latest entry.

$ bita delete --latest

Considering latest entry f3e1e42d-197d-46ce-9d67-a62e0ecaa5f6
Entry deleted successfully f3e1e42d-197d-46ce-9d67-a62e0ecaa5f6

For more info, check the src/help.rs file.

Database

Bita uses a sqlite database. It's stored in your home directory, at /.bita folder.

You can easily take your bita.db file and read it with any tool you want.

Offline experience

Bita is an offline experience. It does not send or receive any data from the internet nor other sources.

It's basically an over-engineered notepad, but serves my needs perfectly.

Compiling

Just clone the repo and run cargo build to compile your own Bita's binary.

About

A simple and fast command line tool to keep track of your daily events without leaving the terminal

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published