This is a simple command line tool that takes a file path as an argument, gathers the avaliable metadata of the file and places it inside of the user's clipboard.
This command line tool uses three external crates:
Structopt - This is a crate that (in this case) allows for the command line tool to take in a file path as an argument and then use and manipulate it.
Chrono - This is a crate that allows for the conversion between std::time::SystemTime
to a std::string::String
, so that it can be pasted onto the user's clipboard.
Clipboard - This is a crate that allows the tool to access the user's clipboard and fill it with the metadata of the file.
Via cargo:
cargo install cli_mega
ToDo:
[x] Collect the metadata of the file.
[x] Add support for the timestamps.
[x] Convert all of the collected metadata into std::string::String
.
[x] Place this metadata string into the user's clipboard.
[ ] Add a help command.
[ ] Allow the user to select the metadata they want to receive.
[ ] Allow for a file that is not in the immediate directory to be analysed.
[ ] Completely error-proof the whole tool.
This project is licensed under the MIT license. See LICENSE for more details.