https://github.com/otechdo/cloning
a clonning tools
https://github.com/otechdo/cloning
Last synced: 11 months ago
JSON representation
a clonning tools
- Host: GitHub
- URL: https://github.com/otechdo/cloning
- Owner: otechdo
- License: agpl-3.0
- Created: 2024-05-28T07:26:21.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T17:04:27.000Z (over 1 year ago)
- Last Synced: 2025-06-03T13:01:23.325Z (12 months ago)
- Language: Rust
- Size: 735 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# What's ?
It's a simple tool to clone directories contents from the local machine.
## Installation
```bash
cargo install cloning
```
## Usage
```text
Cloning source directory to destination
Usage: cloning --template= --progress= --source= --destination= --clock=
Options:
--template= the progress console output
--progress= the progress bar progress chars
--source= the directory to clone
--destination= the directory destination path
--clock= Set the sleep time
-h, --help Print help
```
## Display help
```bash
cloning --help
```
## Example
```bash
cloning --template='{spinner:.white} [{elapsed_precise}] [{bar:50.white}] {msg}' --progress='==-' --source='source' --destination='dest' --clock=250
```
## Template
* [**Templates**](https://docs.rs/indicatif/0.17.8/indicatif/#templates)
* `bar`: renders a progress bar. By default, 20 characters wide. The style string is used to color the elapsed part,
the alternative style is used for the bar that is yet to render.
* `wide_bar`: like bar but always fills the remaining space. It should not be used with wide_msg.
* `spinner`: renders the spinner (current tick string). Note that spinners do not automatically tick by default. You
either need to call enable_steady_tick or manually call tick.
* `prefix`: renders the prefix set on the progress bar.
* `msg`: renders the currently set message on the progress bar.
* `wide_msg`: like msg but always fills the remaining space and truncates. It should not be used with wide_bar.
* `pos`: renders the current position of the bar as integer
* `human_pos`: renders the current position of the bar as an integer, with commas as the thousands separator.
* `len`: renders the amount of work to be done as an integer
* `human_len`: renders the total length of the bar as an integer, with commas as the thousands separator.
* `percent`: renders the current position of the bar as a percentage of the total length (as an integer).
* `percent_precise`: renders the current position of the bar as a percentage of the total length (with 3 fraction
digits).
* `bytes`: renders the current position of the bar as bytes (alias of binary_bytes).
* `total_bytes`: renders the total length of the bar as bytes (alias of binary_total_bytes).
* `decimal_bytes`: renders the current position of the bar as bytes using power-of-10 units, i.e. MB, kB, etc.
* `decimal_total_bytes`: renders the total length of the bar as bytes using power-of-10 units, i.e. MB, kB, etc.
* `binary_bytes`: renders the current position of the bar as bytes using power-of-two units, i.e. MiB, KiB, etc.
* `binary_total_bytes`: renders the total length of the bar as bytes using power-of-two units, i.e. MiB, KiB, etc.
* `elapsed_precise`: renders the elapsed time as HH:MM:SS.
* `elapsed`: renders the elapsed time as 42s, 1m etc.
* `per_sec`: renders the speed in steps per second.
* `bytes_per_sec`: renders the speed in bytes per second (alias of binary_bytes_per_sec).
* `decimal_bytes_per_sec`: renders the speed in bytes per second using power-of-10 units, i.e. MB, kB, etc.
* `binary_bytes_per_sec`: renders the speed in bytes per second using power-of-two units, i.e. MiB, KiB, etc.
* `eta_precise`: the remaining time (like elapsed_precise).
* `eta`: the remaining time (like elapsed).
* `duration_precise`: the extrapolated total duration (like elapsed_precise).
* `duration`: the extrapolated total duration time (like elapsed).