diff --git a/Cargo.lock b/Cargo.lock index 60d4484..997a8fe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -781,7 +781,7 @@ dependencies = [ [[package]] name = "kubectl-copi" -version = "0.1.0" +version = "0.2.0" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index 0c5525a..3605d8f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kubectl-copi" -version = "0.1.0" +version = "0.2.0" edition = "2021" [dependencies] diff --git a/README.md b/README.md index ea0523f..3d832f8 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,8 @@ Once installed, it can be invoked using `kubectl copi`: Usage: kubectl-copi [COMMAND] Commands: - ctx Pick a context from the kube config - Default command if none is specified - ns Pick a namespace for the current context + ctx Pick a context from the kube config + ns Pick a namespace for the current context - Default command if none is specified help Print this message or the help of the given subcommand(s) Options: diff --git a/src/cli.rs b/src/cli.rs index 6fbdc27..b520ab4 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -9,10 +9,10 @@ pub struct Args { #[derive(Subcommand, Debug, PartialEq)] pub enum Command { - /// Pick a context from the kube config - Default command if none is specified + /// Pick a context from the kube config #[command(name = "ctx")] PickContext, - /// Pick a namespace for the current context + /// Pick a namespace for the current context - Default command if none is specified #[command(name = "ns")] PickNamespace, } diff --git a/src/main.rs b/src/main.rs index baceff4..e6007e7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -44,8 +44,8 @@ async fn main() -> anyhow::Result<()> { let args = Args::parse(); match args.command { - Some(Command::PickNamespace) => pick_namespace().await, - _ => pick_context(), + Some(Command::PickContext) => pick_context(), + _ => pick_namespace().await, } }