DiaryCLI
$ pip install diarycli
One CLI command to create and organize your diaries in the terminal.
$ diary opens a CLI editor to today's diary (path: $DIARY_DIR/year/month/date.md)
$ diary cat cat the content of today's diary to terminal.
$ diary 2020-01-01 create a diary entry for 2020/01/01 in the appropriate file path.
Use environment argument DIARY_DIR and DIARY_EDITOR to configure where the diary are and what editor to use, by default, it use vim as editor and ~/diary as path for diary.
When installing via pip, if you see following message:
WARNING: The script diary is installed in '/some/path/examples/bin' which is not on PATH
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location
You may want to add this location to PATH, to do that, add the following line to your .rc file:
export PATH=$PATH:/some/path/examples/bin
Demo
Inspiration
Inspiration from bash diary script that I have created and used for years: https://github.com/Aperocky/diaryman/blob/master/diaryman.sh
pip provides an easier way to package and distribute this software.
Release files for diarycli 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| diarycli-0.2.0.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| diarycli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:7.5 kB
Release files / diarycli-0.2.0.tar.gz
| Download URL | diarycli-0.2.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f16e56c934a7db7a215f5758f09f333e82088e61d4c9681bb1b103b59d708fd
|
|
BLAKE2b-256 checksum How to use checksums |
162ef9b19b840cf5e740fbae590047ee6f1bf180dbe80717ad2bcbafdc2cb647
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.13
|
Release files / diarycli-0.2.0-py3-none-any.whl
| Download URL | diarycli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
561d3ac5cf878b44e97bdfd33d467acac2195ee506c69668d2daf45a59ffc19f
|
|
BLAKE2b-256 checksum How to use checksums |
33dcbd14eab96b475949db26f50b89dd4ed566c5ec622d17156e2374e1c36762
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.13
|