Crates.io | clopy |
lib.rs | clopy |
version | 0.1.2 |
source | src |
created_at | 2022-04-20 05:01:34.289813 |
updated_at | 2022-05-02 08:27:51.6969 |
description | it's like git shallow clone, but it only makes a copy |
homepage | |
repository | https://github.com/kjpark/clopy |
max_upload_size | |
id | 570773 |
size | 54,639 |
it's like git shallow clone, but it only makes a copy. inspired by degit.
great for ci, templating, compiling from source without full git history, etc.
cargo install clopy
clopy [host/]owner/repo[:ref] [destination]
# examples:
clopy kjpark/clopy
clopy github.com/kjpark/clopy:dev
required arguments:
owner
- repo ownerrepo
- repo nameoptional arguments:
host/
- github.com
(default) or gitlab.com
:ref
- branch, tag, or commitdestination
- output path for extracted folder> clopy --help
...
USAGE:
clopy [OPTIONS] <SOURCE> [DESTINATION]
ARGS:
<SOURCE> "[host/]owner/repo[:branch|:tag|:commit]"
<DESTINATION> "output/path"
OPTIONS:
-h, --help Print help information
-v, --verbose verbose output?
-V, --version Print version information
Jedidiah Park (kjpark)
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Inspired by the original degit.