duo-labs / EFIgy

A small client application that uses the Duo Labs EFIgy API to inform you about the state of your Mac EFI firmware
http://efigy.io
BSD 3-Clause "New" or "Revised" License
510 stars 39 forks source link

Request - additional option to auto run #25

Closed jelockwood closed 5 years ago

jelockwood commented 6 years ago

Currently the EFIgyLite_cli.py tool requires interactive response to the question 'Do you want to continue and submit this request? [Y/N]'

This makes it difficult to impossible to 'call' the EFIgyLite_cli.py script via another script.

I therefore request an additional command line option be added e.g. -a to automate or -y to always say yes. Therefore calling the script as follows -

EFIgyLite_cli.py -o -y

would run it and not ask the normal submit question and would return the desired results.

jelockwood commented 6 years ago

Turned out to be simpler than I thought to add this myself. (I am not a programmer, my skills are mainly shell script but I managed to deduce how to do this in python from the existing command line options so as to add another one.)

Below is a diff between the current standard version and a version with a -a option added to automate the script.

diff.txt

Let me know if you need any clarifications.

futureimperfect commented 5 years ago

Thanks for the feedback, @jelockwood. We've added -y as an option in 3c5e59d0b8f46ee9e931a535b10f62b071383610.