tide/tests/_tide_item_docker.test.fish

22 lines
452 B
Fish
Raw Normal View History

# RUN: %fish %s
2022-09-05 19:56:50 +03:00
_tide_parent_dirs
function _docker
_tide_decolor (_tide_item_docker)
end
set -lx tide_docker_icon
2022-04-29 23:50:15 +03:00
mock docker "context inspect" "echo default"
_docker # CHECK:
2022-04-29 23:50:15 +03:00
mock docker "context inspect" "echo colima"
_docker # CHECK:
2022-04-29 23:50:15 +03:00
mock docker "context inspect" "echo curr-context"
_docker # CHECK:  curr-context
2022-04-29 23:50:15 +03:00
mock docker "context inspect" "echo curr-context"
set -lx tide_docker_default_contexts curr-context
_docker # CHECK: