function __fish_kdb_complete --description 'Print a list of kdb subcommands'
    kdb list-commands -v | awk '{if(NR>1)print}'
end

complete --command kdb --exclusive --arguments '(__fish_kdb_complete)'

function __fish_kdb_complete -d 'Print a list of kdb subcommands'
    kdb list-commands -v | awk '{if(NR>1)print}'
end

complete -c kdb -x -a '(__fish_kdb_complete)'

Use short options in Fish completions
Completions: Use short options in Fish completions

ElektraInitiative/libelektra,mpranj/libelektra,mpranj/libelektra,petermax2/libelektra,petermax2/libelektra,e1528532/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,e1528532/libelektra,e1528532/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,e1528532/libelektra,e1528532/libelektra,BernhardDenner/libelektra,mpranj/libelektra,BernhardDenner/libelektra,mpranj/libelektra,e1528532/libelektra,e1528532/libelektra,BernhardDenner/libelektra,e1528532/libelektra,mpranj/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,mpranj/libelektra,petermax2/libelektra,petermax2/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,mpranj/libelektra,mpranj/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra