seedcase-project / template-python-project

A template repository to use when making a Python project for Seedcase.
MIT License
0 stars 0 forks source link

feat: 🧑‍💻 add recipe `add-function` #2

Closed signekb closed 2 months ago

signekb commented 2 months ago

Description

I'm not sure that this is the best way to go about it - and as we, @lwjohnst86 , talked about we might want to make a tool for tasks like this at some point. But maybe this is fine for now?

At least I find this helpful - instead of having to create the function file and corresponding test file by hand.

With this, the command just add-function sprout core hello creates sprout/core/hello.py and the corresponding test file tests/core/test_hello.py

Reviewer Focus

This PR needs a quick review.

signekb commented 2 months ago

What do you think, @martonvago ? Would you find this helpful?