1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
use crate::PKG_VERSION; pub fn usage() -> String { format!( " Version: {pkg_version} Usage: notes new <path> Create a new note. notes search <needle> Search for a note. You can use regex ! notes edit <id> Edit specified note notes delete <id> Delete specified note notes list List all notes notes push Push notes repository notes pull Pull notes repository notes help Show this help 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 ", pkg_version = PKG_VERSION ) }