pibakery icon indicating copy to clipboard operation
pibakery copied to clipboard

Run pibakery from the command line

Open eskatos opened this issue 7 years ago • 7 comments

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 avatar May 01 '17 14:05 eskatos

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.

eskatos avatar May 01 '17 14:05 eskatos

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.

dannystaple avatar May 06 '17 10:05 dannystaple

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?

Aboisier avatar May 13 '17 18:05 Aboisier

+1

kradan avatar May 23 '17 00:05 kradan

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

Hitabis avatar Jun 30 '17 10:06 Hitabis

+1

caseyjmorton avatar Mar 01 '19 03:03 caseyjmorton

+1 to have this implemented in order to automatize pibakery

AlexandruBuhai avatar Oct 15 '19 07:10 AlexandruBuhai