touchx

Crates.iotouchx
lib.rstouchx
version0.1.0
sourcesrc
created_at2024-03-14 14:48:00.116302
updated_at2024-03-14 14:48:00.116302
descriptionBetter touch. Efficient file creation with templates.
homepage
repository
max_upload_size
id1173446
size9,961
akameco (akameco)

documentation

README

touchx

Better touch. Efficient file creation with templates.

If you save files such as LICENSE or .editorconfig, you can create files with similar content to the saved file when using the same file name. The saved templates are stored in the appropriate folder for each operating system based on the XDG Base Directory Specification. For more information, please refer to https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

Install

$ cargo install touchx

Usage

$ touchx sample.txt
$ ls
sample.txt
$ echo 'hello' >> sample.txt
$ cat sample.txt
hello
$ touchx --save sample.txt
$ rm sample.txt
$ touchx sample.txt
$ cat sample.txt
hello
$ touchx --help
Better touch. Efficient file creation with templates.

Usage: touchx [OPTIONS] <FILE>

Arguments:
  <FILE>  target file

Options:
      --save     save the target file
  -h, --help     Print help
  -V, --version  Print version

$ toux

License

MIT

Commit count: 0

cargo fmt