#copying #copy #cli #command-line-tool #gitignore #file #zip-archive

app cpi

A cli for copying files with ignore-files applied

2 unstable releases

0.2.0 Sep 9, 2023
0.1.0 Aug 1, 2023

#14 in #copying

MIT license

12KB
232 lines

cpi

Crates.io

A command-line tool for copying files without ignored files.

Currently supported ignore-file config is .gitignore.

Install

cargo install cpi

Usage

cpi ./project ./project-copy

# disable .gitignore
cpi ./project ./project-copy --no-gitignore

# output as a zip file
cpi ./project ./project-copy.zip

# -f/--force will remove "project-copy" if already existed before copying
cpi ./project ./project-copy -f

To-Do

  • support passing ignore folder in cli

Dependencies

~10–19MB
~232K SLoC