Skip to content

Commit

Permalink
✅(core): Add more test to test all CLI commands
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Nicolaie <[email protected]>
  • Loading branch information
xunleii committed Aug 8, 2024
1 parent 5138b0a commit 1afbe21
Show file tree
Hide file tree
Showing 4 changed files with 437 additions and 17 deletions.
121 changes: 118 additions & 3 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ kube = { version = "0.93.1", features = [
"rustls-tls",
] }
lazy_static = "1.5.0"
owo-colors = "4.0.0"
owo-colors = { version = "4.0.0", features = ["supports-colors"] }
regex = "1.6.0"
serde_yaml = "0.9.14"
walkdir = "2.3.2"
Expand All @@ -70,3 +70,4 @@ assert_cmd = { version = "2.0.15", features = ["color-auto"] }
assert_fs = "1.1.2"
predicates = "3.1.2"
similar-asserts = "1.5.0"
tempdir = "0.3.7"
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl Opts {
match &self.command {
Some(KubeVaultCommands::Generate(cmd)) => cmd.run()?,
Some(KubeVaultCommands::New(cmd)) => cmd.run()?,
Some(KubeVaultCommands::CanRead(cmd)) => cmd.run()?,
Some(KubeVaultCommands::CanRead(cmd)) => cmd.run(std::io::stdout())?,
Some(KubeVaultCommands::ExternalSecretStore(cmd)) => cmd.run()?,

Some(KubeVaultCommands::Completion { shell }) => match shell {
Expand Down
Loading

0 comments on commit 1afbe21

Please sign in to comment.