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

CLI Tool for scripted deployment #137

Open ninijay opened 6 years ago

ninijay commented 6 years ago

It would be nice to have a CLI- Tool for pibakery. Either use this idea or the already developed one and merge this pull req #106

Idea

I would suggest running the cli like this:

pibakery [-i <path/to/xml/file> [-w <tgt>]]
cmd meaning
-i load the following image/ xml on startup
-w optional flag; if set write directly to specified target (tgt)

Use cases

No Args

If no args are supplied the application would start up as usual.

-i

If only the -i arg with a path is supplied the application would start up as usual but already import the specified xml.

-w

If -i and -w is supplied with valid values, the application just writes the supplied image to the target sd card

ninijay commented 6 years ago

Electron Apps with args