cobra-cli: fix generated zsh completion function

Ironically, cobra-cli uses an old version of cobra, which generates
slightly incorrect zsh completion files. This commit adds a simple
substitute in place to bring the zsh completion file in line with
current cobra files, without needing to upgrade the cobra dependency
which might become a bigger refactor

+6
+6
pkgs/by-name/co/cobra-cli/package.nix
··· 44 44 --bash <($out/bin/cobra-cli completion bash) \ 45 45 --fish <($out/bin/cobra-cli completion fish) \ 46 46 --zsh <($out/bin/cobra-cli completion zsh) \ 47 + 48 + # Ironically, cobra-cli still uses old, slightly buggy completion code 49 + # This will correct the #compdef tag and add separate compdef line 50 + # allowing direct sourcing to also activate the completion 51 + substituteInPlace "$out/share/zsh/site-functions/_cobra-cli" \ 52 + --replace-fail '#compdef _cobra-cli cobra-cli' "#compdef cobra-cli''\ncompdef _cobra-cli cobra-cli" 47 53 ''; 48 54 49 55 meta = {