Skip to content
/ clopy Public

it's like git shallow clone, but it only makes a copy. inspired by degit.

License

Notifications You must be signed in to change notification settings

kjpark/clopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clopy

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.

Getting Started

Installation

cargo install clopy

Use

clopy [host/]owner/repo[:ref] [destination]

# examples:
clopy kjpark/clopy
clopy github.com/kjpark/clopy:dev

required arguments:

  • owner - repo owner
  • repo - repo name

optional arguments:

  • host/ - github.com (default) or gitlab.com
  • :ref - branch, tag, or commit
  • destination - output path for extracted folder

Help

> 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

Authors

Jedidiah Park (kjpark)

Version History

  • 0.1.2
    • refactor to use modules
    • use regex in parsing logic
  • 0.1.1
    • first functional release
  • 0.1
    • init cargo test release

License

Licensed under either of

at your option.

Contribution

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.

Acknowledgments

Inspired by the original degit.

About

it's like git shallow clone, but it only makes a copy. inspired by degit.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages