tide/tests/_tide_item_docker.test.fish
2022-04-29 13:50:15 -07:00

21 lines
434 B
Fish

# RUN: %fish %s
function _docker
_tide_decolor (_tide_item_docker)
end
set -lx tide_docker_icon
mock docker "context inspect" "echo default"
_docker # CHECK:
mock docker "context inspect" "echo colima"
_docker # CHECK:
mock docker "context inspect" "echo curr-context"
_docker # CHECK:  curr-context
mock docker "context inspect" "echo curr-context"
set -lx tide_docker_default_contexts curr-context
_docker # CHECK: