tide/tests/_tide_item_docker.test.fish
2022-09-05 12:56:50 -04:00

22 lines
452 B
Fish

# RUN: %fish %s
_tide_parent_dirs
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: