Create a node binary function node bin/import-results.js --results data/example-results.js --source-folder tmp/src --destination-folder tmp/dest
this function will use lib/helpers/import-results.js but not any electron component
another function lib/backend/import-results.js' will do dialog/store and calllib/helpers/import-results.js`
Same exercise must be done regarding node bin/export-results.js --destination-folder tmp/dest --results tmp/example-results.json
Everything erlated to app stuctures (config/results format ...) must be in lib/helpers and seperated to rtghe electron stuff in lib/backend and lib/frontend
node bin/import-results.js --results data/example-results.js --source-folder tmp/src --destination-folder tmp/dest
lib/helpers/import-results.js
but not any electron componentlib/backend/import-results.js' will do dialog/store and call
lib/helpers/import-results.js`node bin/export-results.js --destination-folder tmp/dest --results tmp/example-results.json
lib/helpers
and seperated to rtghe electron stuff inlib/backend
andlib/frontend
Similar issue will be open in belley-annotation