src-fingerprint icon indicating copy to clipboard operation
src-fingerprint copied to clipboard

Find alternative solution for bash, pipe and grep

Open pierrelalanne opened this issue 3 years ago • 1 comments

In this issue, we would like to see if we can somehow easily get rid of the bash -c, pipe and grep commands in the code.
Instead we would like to use go to pipe the commands, and go as well to grep relevant results.

This is in order to simplify the install for Windows user, and make it available for people that don't have a bash emulator available.

As the logic behind a bash pipe is pretty complex (especially when it comes to error management), a possible outcome is an unsuccessful attempt, we are okay with this as long as we can explain our choice.

pierrelalanne avatar Feb 01 '22 13:02 pierrelalanne

Not a complete replacement for everything, but the use of the script package could provide a nicer integration of shell and script commands into the go code.

MichaelPereira avatar Apr 15 '22 21:04 MichaelPereira