Skip to content

Commit

Permalink
tweak markdown output
Browse files Browse the repository at this point in the history
  • Loading branch information
edrevo committed Nov 11, 2019
1 parent ed74900 commit 70583d7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "suspicious-pods"
version = "0.3.0"
version = "0.3.1"
authors = ["edrevo <[email protected]>"]
edition = "2018"
keywords = ["k8s", "kubernetes"]
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@ Example:

```bash
$ suspicious-pods -- help
suspicious-pods 0.2
suspicious-pods 0.3
Prints a list of k8s pods that might not be working correctly

USAGE:
suspicious-pods.exe <namespace>
suspicious-pods.exe <namespace> --format <format>

FLAGS:
-h, --help Prints help information
-V, --version Prints version information

OPTIONS:
-f, --format <format> The output format. Valid values are: text, markdown [default: text]

ARGS:
<namespace> The namespace you want to scan [default: default]

Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use suspicious_pods_lib::{get_suspicious_pods, Result};

fn main() -> Result<()> {
let matches = App::new("suspicious-pods")
.version("0.2")
.version("0.3")
.about("Prints a list of k8s pods that might not be working correctly")
.arg(Arg::with_name("namespace")
.required(true)
Expand Down Expand Up @@ -31,10 +31,10 @@ fn main() -> Result<()> {
}
},
"markdown" => {
println!("## {}", namespace);
println!("#### {}", namespace);
println!();
for pod in suspicious_pods {
println!("*{}*", pod.name);
println!("**{}**", pod.name);
println!();
for container in pod.suspicious_containers {
println!("- Container: {:} `{:?}`", container.name, container.reason);
Expand Down

0 comments on commit 70583d7

Please sign in to comment.