These instructions are based on the shell completion docs from Click.
Save the script somewhere:
_FLOORPLAN_COMPLETE=zsh_source floorplan > ~/.floorplan-complete.zsh
Then add it to your .zshrc
:
echo 'source ~/.floorplan-complete.zsh' >> ~/.zshrc