Gasman2014/KiCad-Diff

Command line friendly

Closed this issue · 2 comments

Hi @Gasman2014 I was playing here to make your script more friendly to the command line.
I added these options to make the processes easy when launching it.

This was the thing I was talking about some days ago. Actually it was with @sunwukonga

Ah, also, I changed the tools path inside the file. I am considering they are in the PATH environment variable. This makes everything easy and flexible. I added an env.sh script putting this project folder in the PATH as an example, so the plotPCB.py can be available too.

This is here. I am making a PR, so we can improve this if you agree.
https://github.com/leoheck/KiCad-Diff

image

I added a flag to change the port, so we can have multiples servers (diffs) running
I added a flag to easily change the display since here in Ubuntu 20.04 it is using :1.0 now

It is working fine
The command line I was using to test is this one (no GUI was hurt in the process haha)

kidiff_linux.py ../myboard/pcb/board.kicad_pcb --scm Git -p 8888 -a 303cb56

If the commit hash is not added using -a or -b flags it uses (now) the HEAD as default.

Ah, this should not mess with the GUI process too. Both should be working.

Since the last time, I added a new flag to -w to avoid launching the webserver when it is not needed.

Should we close this since this was already started?