Fish completion doesn't work, since a nil error is printed after the completion:
❯ ./bin/step completion fish | tail -n 2
complete -c step -n '__fish_seen_subcommand_from revoke' -f -l context -r -d 'The context <name> to apply for the given command.'
<nil>⏎
❯ ./bin/step completion fish | source
- (line 3899): Expected a string, but found a redirection
<nil>
^
from sourcing file -
source: Error while reading file '<stdin>'
Fish completion doesn't work, since a nil error is printed after the completion:
So handle the error instead of printing it.