cli_mega

Crates.iocli_mega
lib.rscli_mega
version0.1.6
sourcesrc
created_at2019-12-05 19:22:23.524611
updated_at2019-12-17 22:26:48.521262
descriptionA tool to gather the metadata of a file
homepagehttps://github.com/MetallicSquid/rust-cmd-line-tools
repositoryhttps://github.com/MetallicSquid/rust-cmd-line-tools
max_upload_size
id186734
size70,191
(MetallicSquid)

documentation

README

mega

MEtadata GAtherer

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:

  1. Structopt - This is a crate that allows for the command line tool to take in a file path as an argument and then use and manipulate it.

  2. 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.

  3. Clipboard - This is a crate that allows the tool to access the user's clipboard and fill it with the metadata of the file.

Features:

  • Can be used to gather metadata of files, directories and symlinks.
  • Instantaneous.

Installation:

Via cargo:

cargo install cli_mega

Screenshot:

cli_mega-demonstration

Flags:

A tool to gather the metadata of a file

USAGE:
    cli_mega.exe [FLAGS] <path>

FLAGS:
    -a, --accessed     Narrow output to the time of last access.
    -c, --created      Narrow output to the time of creation.
    -d, --directory    Narrow output to is_directory.
    -f, --file         Narrow output to is_file.
    -h, --help         Prints help information
    -l, --length       Narrow output to the length of the file.
    -m, --modified     Narrow output to the time of last modification.
    -r, --readonly     Narrow output to is_readonly.
    -s, --symlink      Narrow output to is_symlink.
    -V, --version      Prints version information

ARGS:
    <path>    Path.

License:

This project is licensed under the MIT license. See LICENSE for more details.

Commit count: 79

cargo fmt