Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spenserblack/favlist
I accidentally made a command-line SQLite manager
https://github.com/spenserblack/favlist
cli command-line command-line-tool list sqlite sqlite-database tui
Last synced: 4 months ago
JSON representation
I accidentally made a command-line SQLite manager
- Host: GitHub
- URL: https://github.com/spenserblack/favlist
- Owner: spenserblack
- License: apache-2.0
- Created: 2020-01-10T19:25:28.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-07T22:13:51.000Z (over 2 years ago)
- Last Synced: 2024-09-13T13:11:40.077Z (5 months ago)
- Topics: cli, command-line, command-line-tool, list, sqlite, sqlite-database, tui
- Language: Rust
- Homepage:
- Size: 510 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# favlist
[![Crates.io](https://img.shields.io/crates/v/favlist)](https://crates.io/crates/favlist/)
![Crates.io](https://img.shields.io/crates/d/favlist)
[![Build Status](https://travis-ci.com/spenserblack/favlist.svg?branch=master)](https://travis-ci.com/spenserblack/favlist)Easily make lists, backed up with a SQLite database
# Usage
```bash
# create a new list of movies with an important (not-null) title and an integer year
favlist new Movies ~Title Year@int
# Add a new entry to the Movies list
favlist add Movies -c Title "The Curse of the Cursed Curse" -c Year 2006
# list movies with "Curse" in the title made in 2006 and print in YAML format
favlist list Movies -f Title Curse --filter Year 2006 --yaml
# Change the Year in row 1 of Movies
favlist edit Movies 1 -c Year 2005
# Remove row 1 from Movies
favlist sub Movies 1# Launch the TUI
favlist# Help
favlist --help
favlist [SUBCOMMAND] --help
```
- Create a new list with `favlist new`
- Delete a list with `favlist rem`
- Add a new row to the list with `favlist add`
- Subtract a row from the list with `favlist sub`
- Edit values in a row with `favlist edit`
- Print values of list with `favlist list`## TUI
![TUI Screenshot](https://github.com/spenserblack/favlist/blob/master/images/screenshot.png?raw=true)
The TUI is included by default. If you don't want this feature included, pass the
`--no-default-features` flag when installing/building with `cargo`.For now, you cannot *edit* any data with the TUI, but you can *view* data.
Switch between tables with `<` and `>`, and highlight rows with `↑` and `↓`
on your keyboard. Exit the TUI with `ESC`.# Install
```bash
# Latest released version
cargo install favlist# Don't want the TUI feature?
cargo install --no-default-features favlist# Want to get notified about new releases?
cargo install favlist --features check-latest
```## Dependencies
### Linux
- libsqlite3-dev