Skip to content

Commit

Permalink
Merge pull request #203 from nicklan/cut-0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklan authored Sep 27, 2022
2 parents ee0b4ff + 67d70b6 commit 76bae50
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
0.6.2
=====
Features:
* Allow setting the path to the kubectl binary that click uses via `set kubectl_binary <path>`
* Print the full path the kubectl binary in `env`

Bug Fixes:
* Don't panic if an "azure-auth-provider" doesn't include `expires-by`

0.6.1
=====
Bugfix release:
Expand Down
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 = "click"
version = "0.6.1"
version = "0.6.2"
description = "A command-line REPL for Kubernetes that integrates into existing cli workflows"
authors = ["Nick Lanham <nick@afternight.org>"]
homepage = "https://github.com/databricks/click/wiki"
Expand Down
7 changes: 1 addition & 6 deletions src/completer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,7 @@ impl ClickHelper {

#[allow(clippy::borrowed_box)]
fn get_exact_command(&self, line: &str) -> Option<&Box<dyn Cmd>> {
for cmd in self.commands.iter() {
if cmd.is(line) {
return Some(cmd);
}
}
None
self.commands.iter().find(|&cmd| cmd.is(line))
}

/// complete a line that starts with a full command. This should only be called when we know
Expand Down
2 changes: 1 addition & 1 deletion src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ pub fn raw_quantity(quantity: &Quantity) -> f64 {

if suffix.len() > 1 && (suffix.starts_with('e') || suffix.starts_with('E')) {
// our suffix has more than one char and starts with e/E, so it should be a decimal exponent
match (&suffix[1..]).parse::<u32>() {
match (suffix[1..]).parse::<u32>() {
Ok(exp) => {
let famt = (amt * base10.pow(exp)) as f64;
if has_neg {
Expand Down

0 comments on commit 76bae50

Please sign in to comment.