Crates.io | momi |
lib.rs | momi |
version | 0.3.3 |
source | src |
created_at | 2024-05-01 09:18:24.054986 |
updated_at | 2024-05-05 15:15:33.356133 |
description | A simple CLI tool to create your minutes of meeting |
homepage | |
repository | https://github.com/altair823/momi |
max_upload_size | |
id | 1225982 |
size | 56,993 |
This project is a simple tool to help you create a new Minutes of Meeting (MoM) document. It will create a new text file with the metadata of the meeting and a template for the MoM.
cargo install momi
momi.exe [options] <filename>
./momi [options] <filename>
-o, --overwrite
Overwrite the file if it already exists-v, --verbose
-a, --author <AUTHOR>
The author of the document-p, --open
Open all files after creating them-e, --enrich
Add additional metadata to the document-h, --help
Print help-V, --version
Print version--create-config
Create a default configuration filemomi.exe -a "John Doe" "Meeting with the client 1.md"
And the file Meeting with the client 1.md
contains the following content:
# Meeting with the client 1
created: 2024-04-30 04:58:44
author: John Doe
The configuration file is located at config.json
in the same directory as the executable.
It can hold the following settings:
author
: The default author of the documentextension
: The default extension of the documentheader
: The default header of the documentfooter
: The default footer of the documentrich
: The custom metadata that can be added to the documentIn config.json
:
{
"author": "John Doe",
"extension": "txt",
"header": "--------header--------",
"footer": "--------footer--------",
"rich": {
"extra_metadata": [
"location",
"attendees",
"meeting chair",
"agenda"
]
}
}
This json file will set the default values for metadata:
txt
location
, attendees
, meeting chair
, and agenda
-e
optionAs a result of the above configuration, the following bash command will create a file with the following content:
momi.exe "Meeting with the client 1"
In the file Meeting with the client 1.txt
:
Meeting with the client 1
created: 2024-04-30 05:01:39
author: John Doe
--------header--------
--------footer--------
If -e
or --enrich
option is provided, the program will ask for the extra metadata labels and values to be added to the document.
momi.exe -e "Meeting with the client 1"
Meeting with the client 1
created: 2024-04-30 05:01:39
author: John Doe
location:
attendees:
meeting chair:
agenda:
--------header--------
--------footer--------
If -o
or --overwrite
options are provided on the command line,
the configuration file is overridden by the command line options.
created
: The date and time the document was createdauthor
: The author of the documentThese are the extensions that the program can automatically add to the filename as the title of the document:
.txt
: Text file.md
: Markdown fileThe program will write the metadata to the document if the author is provided as an CLI option.
If the author is not provided, the program will use the default author from the configuration file.
If the author is not provided in the configuration file, the program will write the current user's name as the author($USER
).
If the author is provided as an option at the same time as the configuration file, the program will use the author provided as an option and ignore the author in the configuration file.
The rest of the metadata will be written to the document by same rules as the author.
cargo build --release
target/release/momi
You can also run the executable from the project directory with the following command:
cargo run -- [options] <filename>
See Todo.md for the list of features that are planned but not implemented yet.
This project is licensed under the MIT License - see the LICENSE file for details.