wip clip
This commit is contained in:
parent
bfb162aede
commit
2d4fc87550
32
README.md
32
README.md
@ -1,17 +1,37 @@
|
|||||||
# sys-compare
|
# sys-compare
|
||||||
#### work in progress
|
|
||||||
|
### Modes
|
||||||
|
```shell
|
||||||
|
Usage: sys-compare <COMMAND>
|
||||||
|
|
||||||
|
Commands:
|
||||||
|
create
|
||||||
|
compare
|
||||||
|
help Print this message or the help of the given subcommand(s)
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-h, --help Print help
|
||||||
|
```
|
||||||
|
|
||||||
### Create Snapshot
|
### Create Snapshot
|
||||||
## ./sys-compare create [snapshot] [root_dir]
|
|
||||||
```shell
|
```shell
|
||||||
cargo run -- create ./test1.snap /home/foxx/Documents/
|
Usage: sys-compare create --root-dir <ROOT_DIR> --output-path <OUTPUT_PATH>
|
||||||
cargo run -- create ./test2.snap /home/foxx/Documents/
|
|
||||||
|
Options:
|
||||||
|
-r, --root-dir <ROOT_DIR>
|
||||||
|
-o, --output-path <OUTPUT_PATH>
|
||||||
|
-h, --help Print help
|
||||||
```
|
```
|
||||||
|
|
||||||
### Compare Snapshots
|
### Compare Snapshots
|
||||||
## ./sys-compare compare [.snap] [.snap] [created]|[deleted]|[changed]
|
|
||||||
```shell
|
```shell
|
||||||
cargo run -- compare ./test1.snap ./test2.snap created
|
Usage: sys-compare compare [OPTIONS] --left <LEFT> --right <RIGHT>
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-l, --left <LEFT>
|
||||||
|
-r, --right <RIGHT>
|
||||||
|
-s, --selection <SELECTION>
|
||||||
|
-h, --help Print help
|
||||||
```
|
```
|
||||||
|
|
||||||
## Development and Collaboration
|
## Development and Collaboration
|
||||||
|
@ -2,9 +2,6 @@ pub mod comparemode;
|
|||||||
pub mod createmode;
|
pub mod createmode;
|
||||||
mod options;
|
mod options;
|
||||||
|
|
||||||
|
|
||||||
use std::env::args;
|
|
||||||
use std::process::exit;
|
|
||||||
use clap::{FromArgMatches, Parser};
|
use clap::{FromArgMatches, Parser};
|
||||||
use crate::comparemode::CompareMode;
|
use crate::comparemode::CompareMode;
|
||||||
use crate::createmode::CreateMode;
|
use crate::createmode::CreateMode;
|
||||||
|
Loading…
Reference in New Issue
Block a user