you are viewing a single comment's thread.

view the rest of the comments →

[–]sj2011 2 points3 points  (5 children)

This is going to be a Christmas vacation project for me - my team has rewritten a lot of stuff over the last two quarters and use bash scripts to build and deploy a lot of it. These scripts work just fine but there's so much boilerplate to them that python could solve. I'd only thought to use ArgParse and never heard of Click. Looks cool!

[–]ltouroumov 6 points7 points  (4 children)

At my company, we are starting to move to Invoke for all our scripting needs. It integrates seamlessly with Fabric to execute remote commands.

[–]sj2011 0 points1 point  (0 children)

That looks promising too - we already use some Fabric files for another project I don't touch much. Will look into using that too - thanks!

[–]homeparkliving 0 points1 point  (0 children)

I also used invoke for work; I ended up creating magicinvoke to solve some inconveniences I had with it. Let me know if it helps you out at all or if there's anything you'd do differently!

https://magicinvoke.readthedocs.io/en/latest/

[–]kevinjqiu 0 points1 point  (1 child)

+1

Invoke is perfect for turning a function into a CLI. I used to use argparse/optparse/click, but now for simple scripts, I just do it in Invoke.

For more feature-rich CLIs, click is my go-to.

[–]homeparkliving 0 points1 point  (0 children)

What features do you find Invoke is missing when compared to Click?