Open AiyionPrime opened 3 years ago
So you would like to load a project, load some data into a specified position of the simulated memory, run the project, export (part of) the simulated memory all with a single command-line call?
Yes, I think that would make the simulator scriptable and allow to write some sort of tests for its projects.
I'd suggest to use picocli as command line argument parser. It seems to be relatively easy to use. At this point it is actively maintained. What are your thought? Would you rather go with Apache Commons CLI? In general, the Apache Java libraries seem to be not much maintained in the last years.
Btw, I already looked into the code and started to make some changes towards the suggestion of a CLI version.
I'm sorry to have no strong opinions on cli-libraries, as I haven't written proper java code in ages. But picocli appears to be a very well suited candidate and I have a thing for keeping the code short :+1:
Did you already check the PR draft for a CLI version?
No not yet, but will tomorrow. I didn't occure to me, yet - sorry.
I think it would be a huge improvement if one could control loading the project and memory chunks, running the project as well as exporting memory via commandline parameters. This would greatly improve reliable testing as well as better documentation approaches and reproducibility.
Good starters would be:
Running the project would be an implicit step after loading and before exporting.