-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from oniony/more-refactoring
chore(refactor): Refactoring project layout
- Loading branch information
Showing
18 changed files
with
457 additions
and
496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* [ ] Get integration tests to snapshot database | ||
* [ ] Split into lib and executable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
use clap::{Parser, ValueEnum}; | ||
|
||
#[derive(Parser, Debug)] | ||
#[command(version, about, long_about = None)] | ||
pub struct Args { | ||
#[arg(short, long, short = 'l', help = "The left database URL")] | ||
pub left: String, | ||
|
||
#[arg(short, long, short = 'r', help = "The right database URL")] | ||
pub right: String, | ||
|
||
#[arg(short, long, required = true, short = 's', help = "Schema to compare")] | ||
pub schema: Vec<String>, | ||
|
||
#[arg(short, long, short = 'w', help = "Ignore routine whitespace differences")] | ||
pub ignore_whitespace: bool, | ||
|
||
#[arg(short, long, short = 'o', help = "Ignore column ordering differences")] | ||
pub ignore_column_ordinal: bool, | ||
|
||
#[arg(short, long, short = 'p', help = "Ignore privilege changes")] | ||
pub ignore_privileges: bool, | ||
|
||
#[arg(short, long, short = 'v', help = "Show matches")] | ||
pub verbose: bool, | ||
|
||
#[arg(short, long, short = 'c', alias = "colour", help = "Use colour", default_value = "auto")] | ||
pub color: Colouring, | ||
} | ||
|
||
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum, Debug)] | ||
pub enum Colouring { | ||
Auto, | ||
Always, | ||
Never, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.