This commit is contained in:
jamesk 2024-03-29 10:46:28 -04:00
parent bfb162aede
commit 2d4fc87550
2 changed files with 26 additions and 9 deletions

View File

@ -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

View File

@ -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;