Add zsh completion for 'docker service ls --filter mode'
@@ -1765,6 +1765,10 @@ __docker_service_complete_ls_filters() {
(id)
__docker_complete_services_ids && ret=0
;;
+ (mode)
+ opts=('global' 'replicated')
+ _describe -t mode-opts "mode options" opts && ret=0
+ ;;
(name)
__docker_complete_services_names && ret=0
;;
@@ -1773,7 +1777,7 @@ __docker_service_complete_ls_filters() {
;;
esac
else
- opts=('id' 'label' 'name')
+ opts=('id' 'label' 'mode' 'name')
_describe -t filter-opts "filter options" opts -qS "=" && ret=0
fi
