#compdef dotnet
local completions=("$(dotnet complete "$words")")
[[ -n "$completions" ]] && compadd -- "${(ps:\n:)completions}" 
