davidferguson / pibakery

The blocks based, easy to use setup tool for Raspberry Pi
http://www.PiBakery.org
GNU General Public License v3.0
1.49k stars 147 forks source link

Run pibakery from the command line #97

Open eskatos opened 7 years ago

eskatos commented 7 years ago

It would be awesome to be able to run pibakery from the command line to load an exported setup file and use it to create a sd card in a single step.

eskatos commented 7 years ago

This could ideally work without showing any GUI. But it would already be very nice to be able to automate the creation of SD cards from exported setup files even if a GUI shows up.

dannystaple commented 7 years ago

I suppose it would mean taking the node core (not the electron bit) and creating a nodejs command line wrapper around it - something like

node bakemeapi /foo/bar/recipe.xml /mnt/sdcard

Which would read the recipe foo/bar/recipe.xml, and write it to the device /mnt/sdcard. This does sound like a great idea.

Aboisier commented 7 years ago

Hi,

I would be interested in implementing this feature.

I started looking into it, and realized that, to make it in a clean way, it would require compartmentalizing a few methods in their own script/package (aka WriteImage and the related methods). It would be some kind of device/drive/sd helper.

After, it would be a matter of adding the command to the package, which would be pretty simple.

Is that something that would be interesting if I do a PR?

kradan commented 7 years ago

+1

Hitabis commented 7 years ago

Posted a pull request for this issue. https://github.com/davidferguson/pibakery/pull/106

caseyjmorton commented 5 years ago

+1

AlexandruBuhai commented 4 years ago

+1 to have this implemented in order to automatize pibakery