notes

Crates.ionotes
lib.rsnotes
version0.2.108
sourcesrc
created_at2019-12-07 20:43:16.098512
updated_at2020-09-01 20:41:05.445434
descriptionA simple tool for taking notes. Work in progress. See: https://gitlab.com/remipassmoilesel/notes
homepage
repositoryhttps://gitlab.com/remipassmoilesel/notes.git
max_upload_size
id187156
size235,830
Rémi de Passmoilesel (remipassmoilesel)

documentation

README

Notes

Pipeline status coverage report

A simple tool for taking notes. notes helps you to keep your notes in a clean directory structure, with Git as versioning.

Work in progress. Only tested on Arch Linux.

Prerequisites:

  • Git
  • $EDITOR variable set with the path of your favorite editor. Your editor must block while editing.

Main repository is hosted on Gitlab: https://gitlab.com/remipassmoilesel/notes.git

Usage

$ notes help

Notes 🚀 🚀 🚀

███╗   ██╗ ██████╗ ████████╗███████╗███████╗
████╗  ██║██╔═══██╗╚══██╔══╝██╔════╝██╔════╝
██╔██╗ ██║██║   ██║   ██║   █████╗  ███████╗
██║╚██╗██║██║   ██║   ██║   ██╔══╝  ╚════██║
██║ ╚████║╚██████╔╝   ██║   ███████╗███████║
╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚══════╝╚══════╝

    Clean all the brains !

Usage:

  notes new <title>         Create a new note.
  notes n <title>             -> All commands have a short alias
  notes search <needle>     Search for a note. You can use regex !
  notes s <needle>
  notes edit <id>           Edit specified note
  notes e <id>
  notes delete <id>         Delete specified note
  notes d <id>
  notes list                List all notes
  notes l
  notes push                Push notes repository (Git based)
  notes p
  notes pull                Pull notes repository (Git based)
  notes ll
  notes help                Show this help
  notes h

Options:
  -h --help     Show this screen.
  --version     Show version.

Examples:

    $ notes new my-awesome-idea
    $ notes list
    $ notes edit 123
    $ notes delete 123

With shortcuts:

    $ notes n my-awesome-idea
    $ notes e 123
    $ notes d 123

See https://gitlab.com/remipassmoilesel/notes

Build

Install Rust nightly and tools:

$ rustup install nightly
$ rustup default nightly
$ cargo install cargo-tarpaulin

Build:

$ cargo build --release

Unit testing:

$ cargo test --lib

Integration tests need setup:

$ ./_test.sh
Commit count: 23

cargo fmt