#touch #file #cli #filetimes

bin+lib poke

Inspired by the classic touch command

3 releases

0.1.3 Mar 2, 2022
0.1.2 Feb 27, 2022
0.1.1 Feb 26, 2022
0.1.0 Feb 17, 2022

#1011 in Filesystem

MIT/Apache

10KB
167 lines

Poke

Description

Inspired by the classic touch command.

Please take a look at the ROADMAP to understand more about what this project is going to be, and which features are currently working.

Thanks to all crates used for saving me a whole lot of time.

Installation

cargo install --force poke

Usage

USAGE:
    poke.exe [OPTIONS] <FILES>...

ARGS:
    <FILES>...    the file(s) to be modified

OPTIONS:
    -a
            change only the access time

    -b
            delete given file(s)

    -c, --no-create
            if not found, don't create new file(s)

    -d, --date <DATE>
            use this date string instead of current time. The Supported formats are: "1/01/2001
            00:00", "1 jan(uary) 2001 0am", "last friday 2pm" and so on. for more information:
            https://crates.io/crates/chrono-english

    -h, --help
            Print help information

    -m
            change only the modification time

    -r, --reference-file <REFERENCE_FILE>
            use this files time, instead of current time

    -V, --version
            Print version information

Compatibility

The current version (0.1.3) is only tested on windows, but should support Linux/Mac OS. In the future I will test Linux builds in a vm.

Dependencies

~3–11MB
~104K SLoC