Feature request: Add full usable commandline control

Asked by Jens Bachenberg

Hi,
thanks for creating this powerful and useful tool but it would be even more powerful if it would support some command line options like source, destination, what to do, etc. so it could be used by scrips etc.

Thanks and best wishes
Jens

Question information

Language:
English Edit question
Status:
Answered
For:
Image Writer Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Jeff B (skydiver38) said :
#2

I think this is a good idea, and I'd certainly consider it for the future. That said, it's a significant amount of work at this point. Lots of the code assumes there's a GUI - we'd need to work on separating that better.

I don't know how to "unexpire" this...

Revision history for this message
Jeff B (skydiver38) said :
#3

Worth considering for the future...

Revision history for this message
Tobin Davis (gruemaster) said :
#4

Actually, there is already a utility, rawrite, that does exactly that. The reason this project exists is for users that are not as adept with the commandline shell.

Currently, this program does accept commandline input for the image file. If you type "Win32DiskImager.exe <imagefilename>" it will prefill the Image File textbox.

Adding support for other options (start read or write for example) are easy to add, but to change the program to non-gui or have a commandline version only would make it into something that already exists.

That said, the way the program is written makes it possible to have a cli version as well. The core of the program is in disk.cpp, while the gui is handled by mainwindow.cpp. Writing a wrapper for disk.cpp would be relatively straight-forward (and I believe the QT tools have examples to do this with).

Revision history for this message
Jens Bachenberg (jens-3) said :
#5

Hi Tobin,
if you mean rawwrite http://uranus.chrysocome.net/linux/rawwrite-old.htm this tool has full command line support but only deals with floppy drives and no other types of drives like HDD, SD-Card etc.
I don't need a GUI-less solution but I need a fully scriptable solution.
So I need at least these options:
1. Source: file / drive
2. Destination: drive / file
3. Action: write / read
4. Automation actions: Autostart image process (yes/no) + Autoquit application after image action was processed.
5. Logfile: File name, mode (append, overwrite)
6. Returncode: successs / failed.

Revision history for this message
Tobin Davis (gruemaster) said :
#6

I've created a wishlist bug report for this. No guarantees, but definitely something worth considering.

As soon as I can get back into a dedicated developer mode, I'll start parsing through the bugs and feature requests. I also have a few merge requests that I need to review.

It will be a busy holiday season.

Can you help with this problem?

Provide an answer of your own, or ask Jens Bachenberg for more information if necessary.

To post a message you must log in.