| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Keep Your Daily Events Recorded on Your Logbook Using Command Line.
logbook-cli is created using python. It uses typer for the Command Line Interface and SQLAlchemy to interact with the database (sqlite). All the log entries are stored into the sqlite database.
You can install logbook-cli by using pip:
pip install logbook-clilogbook-cli stores the sqlite database in ~/.logbook/ directory by default.
You can use LOG_BOOK_DATABASE_URL environment variable to use a different location.
Example:
export LOG_BOOK_DATABASE_URL=sqlite:///logbook.sqlite3Usage
$ logbook-cli [OPTIONS] COMMAND [ARGS]...Options:
Commands:
Add a log entry to the logbook.
Usage:
$ logbook-cli add [OPTIONS] DESCRIPTIONArguments:
Options:
Example:
$ logbook-cli add -d "2021-05-10" -t "10:00 PM" "This is a Test Log Entry"Delete a log entry using it's ID.
Usage:
$ logbook-cli delete [OPTIONS] IDArguments:
Options:
Example:
$ logbook-cli delete 1Update a log entry using it's ID.
Usage:
$ logbook-cli edit [OPTIONS] IDArguments:
Options:
Example:
$ logbook-cli edit 1 -d "2021-05-10" -t "10:00 PM" --description "This is a Edited Test Log Entry"List all log entries that match the argument.
Usage:
$ logbook-cli find [OPTIONS] DESCRIPTION_CONTAINSArguments:
Options:
Example:
$ logbook-cli find "test"List all log entries in a table, limits upto 40 log entries.
Usage:
$ logbook-cli list [OPTIONS]Options:
Example:
$ logbook-cli listView a single log entry using it's ID.
Usage:
$ logbook-cli view [OPTIONS] IDArguments:
Options:
Example:
$ logbook-cli view 1| Back | FazBrowse Home | New Git URL |