mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 03:52:12 +03:00
21 lines
604 B
Fish
21 lines
604 B
Fish
# RUN: %fish %s
|
|
_tide_parent_dirs
|
|
|
|
function _kubectl
|
|
_tide_decolor (_tide_item_kubectl)
|
|
end
|
|
|
|
set -lx tide_kubectl_icon ⎈
|
|
|
|
mock kubectl "config view --minify --output" "echo error: current-context must exist in order to minify >&2; false"
|
|
_kubectl # CHECK:
|
|
|
|
mock kubectl "config view --minify --output" "echo curr-context/default"
|
|
_kubectl # CHECK: ⎈ curr-context
|
|
|
|
mock kubectl "config view --minify --output" "echo curr-context/"
|
|
_kubectl # CHECK: ⎈ curr-context
|
|
|
|
mock kubectl "config view --minify --output" "echo curr-context/curr-namespace"
|
|
_kubectl # CHECK: ⎈ curr-context/curr-namespace
|