Rewrite pgist CLI with Click