-
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 #22 from KnpLabs/v0.2.0
v0.2.0
- Loading branch information
Showing
16 changed files
with
156 additions
and
28 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 |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
ci/Cargo.lock | ||
cli/Cargo.lock | ||
git/Cargo.lock | ||
logger/Cargo.lock | ||
utils/Cargo.lock | ||
target/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,6 +1,6 @@ | ||
[package] | ||
name = "ssc" | ||
version = "0.1.0" | ||
version = "0.2.0" | ||
description = "A CLI tool to skip a CI build that is not concerned by the latest changes." | ||
homepage = "https://github.com/KnpLabs/should-skip-ci" | ||
repository = "[email protected]:KnpLabs/should-skip-ci.git" | ||
|
@@ -15,6 +15,7 @@ edition = "2018" | |
ci = { path = "ci" } | ||
cli = { path = "cli" } | ||
git = { path = "git" } | ||
logger = { path= "logger" } | ||
|
||
[dev-dependencies] | ||
rand = "0.7" |
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
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,5 +1,8 @@ | ||
[package] | ||
name = "ci" | ||
version = "0.1.0" | ||
version = "0.2.0" | ||
authors = ["KNP Labs"] | ||
edition = "2018" | ||
|
||
[dependencies] | ||
log = "0.4.8" |
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
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,6 +1,6 @@ | ||
[package] | ||
name = "cli" | ||
version = "0.1.0" | ||
version = "0.2.0" | ||
authors = ["KNP Labs"] | ||
edition = "2018" | ||
|
||
|
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
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,8 +1,9 @@ | ||
[package] | ||
name = "git" | ||
version = "0.1.0" | ||
version = "0.2.0" | ||
authors = ["KNP Labs"] | ||
edition = "2018" | ||
|
||
[dependencies] | ||
utils = { path = "../utils" } | ||
log = "0.4.8" |
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
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
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
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,9 @@ | ||
[package] | ||
name = "logger" | ||
version = "0.2.0" | ||
authors = ["KNP Labs"] | ||
edition = "2018" | ||
|
||
[dependencies] | ||
log = "0.4.8" | ||
simple_logger = { version = "1.6.0", default-features = false } |
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,16 @@ | ||
extern crate log; | ||
extern crate simple_logger; | ||
|
||
use log::Level; | ||
|
||
pub fn configure_logger(verbosity: &u8) { | ||
let level: Level; | ||
|
||
match *verbosity { | ||
1 => level = Level::Info, | ||
2 => level = Level::Debug, | ||
_ => level = Level::Warn, | ||
} | ||
|
||
simple_logger::init_with_level(level).unwrap(); | ||
} |
Oops, something went wrong.