Skip to content

Commit

Permalink
Refactor and add unit tests (#20)
Browse files Browse the repository at this point in the history
* Use interleaving methods instead, and add unit tests

* Add unit tests to test finding ignore files
  • Loading branch information
guangie88 authored Apr 18, 2018
1 parent 99ecd6e commit e1fd439
Show file tree
Hide file tree
Showing 5 changed files with 264 additions and 17 deletions.
22 changes: 19 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "terraform-zap"
version = "0.3.0"
version = "0.3.1"
authors = ["Chen Weiguang <[email protected]>"]
description = "Script wrapper to perform finer terraform destroy"
repository = "https://github.com/guangie88/terraform-zap"
Expand All @@ -16,10 +16,11 @@ codecov = { repository = "guangie88/terraform-zap" }
derive_more = "=0.10.0"
failure = "=0.1.1"
is_executable = "=0.1.0"
itertools = "=0.7.8"
structopt = "=0.2.7"
structopt-derive = "=0.2.7"
subprocess = "=0.1.12"
terraform-zap-ignore-lib = { path = "ignore-lib", version = "0.3.0" }
terraform-zap-ignore-lib = { path = "ignore-lib", version = "0.3.1" }
toml = "=0.4.6"
which = "=2.0.0"
whiteread = "=0.4.3"
Expand Down
2 changes: 1 addition & 1 deletion ignore-lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "terraform-zap-ignore-lib"
version = "0.3.0"
version = "0.3.1"
authors = ["Chen Weiguang <[email protected]>"]
description = "Provides ignore implementation to terraform-zap"
documentation = "https://docs.rs/terraform-zap-ignore-lib"
Expand Down
4 changes: 4 additions & 0 deletions src/arg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ pub struct Config {
#[structopt(short = "v", long = "verbose", parse(from_occurrences))]
/// Verbose flag (-v, -vv, -vvv)
pub verbose: u8,

#[structopt(short = "p", long = "pass")]
/// Additional arguments to pass to `terraform destroy`
pub pass_args: Option<String>,
}
Loading

0 comments on commit e1fd439

Please sign in to comment.