3 ms·
Every project I work on uses the `invoke`[1] Python package to create a project CLI. It's super powerful, comes with batteries included, and allows for some bet
by fra 6y ago
Every project I work on uses the `invoke`[1] Python package to create a project CLI. It's super powerful, comes with batteries included, and allows for some better code sharing and compartmentalization than a bunch of bash scripts.
[1] http://www.pyinvoke.org/ http://www.pyinvoke.org/
- jgable 6y agoI remember the memfault blog post that introduced me to this package. Great find, and I’ve started doing the same on all my embedded dev projects. Thanks!
- theptip 6y agoThanks for the recommendation, I used Fabric for local scripting ages ago and haven’t revisited in some time. Is it mostly the Make-style task decorators for managing the project task list that you consider a win vs. native subprocess.run? Are there other features that you find valuable too? (Back when the original fabric was written subprocess was much less friendly to work with, of course).