poke 0.1.2

A Simple program that aims to replicate the functionality of touch, and expand on it.
poke-0.1.2 is not a library.
Visit the last successful build: poke-0.1.3

Poke


##### Description

A Simple program that aims to replicate the functionality of [touch](touch (command) - Wikipedia), and expand on it.

Thanks to: clap, filetime and thiserror for saving me a whole lot of time.

##### Features

  • Create files

  • Delete files

  • Change Access/Modification time (supports reference file)

  • [] Change Creation time (only in a specific case)

  • Support for special syntax

    poke file{3}.rs

    poke some_file ./some_dir/other_file.rs

Installation

cargo install --force poke

Commands
USAGE:
    poke.exe [OPTIONS] <files>...

ARGS:
    <files>...

OPTIONS:
    -a                                  change only access time.
    -b                                  deletes files. incompatible with any other command.
    -c, --no-create                     do not create any files.
    -d, --date <date_string>            parse time string and use it instead of current time. (NOT
                                        IMPLEMENTED)
    -h, --help                          Print help information
    -m                                  change only modification time.
    -r, --reference <reference_file>    use this file's times instead of current time.
    -V, --version                       Print version information
Compatibility

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