Closed helmut-hoffer-von-ankershoffen closed 5 years ago
one:courses hhva$ RUST_BACKTRACE=1 click [none] [none] [none] > context thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:345:21 stack backtrace: 0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace 1: std::sys_common::backtrace::print 2: std::panicking::default_hook::{{closure}} 3: std::panicking::default_hook 4: std::panicking::rust_panic_with_hook 5: std::panicking::continue_panic_fmt 6: rust_begin_unwind 7: core::panicking::panic_fmt 8: core::panicking::panic 9: <core::iter::adapters::Map<I,F> as core::iter::traits::iterator::Iterator>::fold 10: <alloc::vec::Vec<T> as alloc::vec::SpecExtend<T,I>>::from_iter 11: <click::cmd::Context as click::cmd::Cmd>::exec 12: click::main 13: std::rt::lang_start::{{closure}} 14: std::panicking::try::do_call 15: __rust_maybe_catch_panic 16: std::rt::lang_start_internal 17: main one:courses hhva$
one:courses hhva$ kubectl version Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.0", GitCommit:"e8462b5b5dc2584fdcd18e6bcfe9f1e4d970a529", GitTreeState:"clean", BuildDate:"2019-06-20T04:49:16Z", GoVersion:"go1.12.6", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.2", GitCommit:"66049e3b21efe110454d67df4fa62b08ea79a19b", GitTreeState:"clean", BuildDate:"2019-05-16T16:14:56Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"} ´´´
For me, it crashes only when no argument is given
Ahh, it's probably because that context has no cluster configured and I assume it does. I'll fix that, thanks for the report!
Fixed by #114