mraleson / piku

A small command line utility for managing CircuitPython projects
MIT License
13 stars 3 forks source link

Add initialize command #13

Closed tekktrik closed 2 years ago

tekktrik commented 2 years ago

Adds a command so that piku can create all the necessary files in an existing location:

some/location/ >> piku initialize
Piku v0.1.8
Done.

Related to #2 which was partially intended as a way to create a piku project in an existing git repository

mraleson commented 2 years ago

Thank you for the pull request! I was thinking about adding something similar as a command line argument to create (an optional second argument for a path). So it could be something like piku create <project name> <path>. It would prevent two commands for creating. If this works I will make that change and merge.

Also though I see the advantage of not having to type the project name / path and having an init command that lines up with npm init. Do you have an opinion? Really, either way works and I will merge.

tekktrik commented 2 years ago

Hm, I think both are good. I think the intention of mine is more of an after-the-fact, like "Oh, I probably should use Piku here to make things easier". I imagined and designed this one to be more hands off - it assumes you already have the project name and path already sorted out. But I think both would be great! Your call though of course!

mraleson commented 2 years ago

Okay cool, I added both.