Cale
it's a simple cli application to manage events. All the events are stored into a sqlite3
database.
In order to use Cale
you need to have to following packages installed:
- rust
- sqlite3
- Clone the repository
- Run
cargo build --release
- Run
./target/release/cale --help
to see the available commands
add
- add a new event to the database
Ex:
cale add 'event 1' '2023-10-17 08:00' '2023-10-17 09:00'
Ex: (force event creation)
cale add 'event 1' '2023-10-17 08:00' '2023-10-17 09:00' --allow-overlap
By default, if the event overlaps with another event, it will not be added to the database. To force the insertion of the event, use the --allow-overlap
flag.
list
- list all the events in the database within the given range
Ex:
cale list <start_date> <end_date>
delete
- delete an event from the database
cale delete <event_id>
update
- Update an event in the database. Just like theadd
command,update
command, by default, will not allow the update of an event if it overlaps with another event. To force the update of the event, use the--allow-overlap
flag.
Ex:
cale update 'event 1' '2023-10-17 08:00' '2023-10-17 09:00'
Ex: (force event update)
cale update 'event 1' '2023-10-17 08:00' '2023-10-17 09:00' --allow-overlap
show
- show an event from the database
cale show <event_id>