qelectrotech / qelectrotech-source-mirror

Main QET repository, Bugtracker: https://qelectrotech.org/bugtracker/
https://qelectrotech.org
GNU General Public License v2.0
273 stars 83 forks source link

Feature Request: CLI for scripts #162

Open jkrenzer opened 3 years ago

jkrenzer commented 3 years ago

Hi!

I just wanted to drop an idea:

Adding a command-line-interface for functions like opening files, saving, import and export operations would be really helpful. This could also be achieved by exposing all functionality internally to a language-bindung (like python) so a CLI could be developed independently from the main-gui program which would then be used by the CLI as backend. In latter case integrating a scripting language natively would also be within grasp.

The ability to run without GUI on a shell would be needed either way.

Just two example use-case:

  1. Scripting locally
    • Use a script to automate getting all derived files (CSV, PDFs etc.) exported after you have done a new revision of a file
    • Use a unified script so all projects done will get the same layout of derived files
  2. Using CI
    • Keep your *.qet files in a git, hosted on github, gitlab or a similar webservice with CI backend
    • Use github/gitlab CI actions to build and publish plan PDFs, BOM, list-of-cables, CSV-exports etc. automatically after each push or merge to the repository

Cheers,

Jörn

scorpio810 commented 3 years ago

Hi Jörn,

you are welcome. Can you take care of it?

jkrenzer commented 3 years ago

Sorry, this somewhat drowned in my inbox. Currently I am quite flooded with work, so I cannot afford to spend time on this. I might take a look later on if this issue is still open then. Still I think it is good to keep this feature-request around to keep track of this for the time being.