asreview / asreview-makita

Workflow generator for simulation studies using the command line interface of ASReview LAB
https://asreview.ai
MIT License
30 stars 17 forks source link

Add filehandler and implement overwrite protection #28

Closed jteijema closed 1 year ago

jteijema commented 1 year ago

Following issue #15, this PR replaces the file handling with a separate file handler.

Example interaction:

Makita_ARFI>asreview makita template arfi -f jobs.bat
Loading script get_plot.py
Overwrite scripts\get_plot.py (Yes/No/All)? y
Added scripts\get_plot.py
Loading script merge_descriptives.py
Overwrite scripts\merge_descriptives.py (Yes/No/All)? n
Skipped scripts\merge_descriptives.py
Loading script merge_metrics.py
Overwrite scripts\merge_metrics.py (Yes/No/All)? a
Added scripts\merge_metrics.py
Loading script merge_tds.py
Added scripts\merge_tds.py
Loading doc README.md
Added README.md
4 file(s) created.
Rendered template arfi and saved to jobs.bat
jteijema commented 1 year ago
>asreview makita add-script get_plot.py
Loading script get_plot.py
Overwrite scripts\get_plot.py (Yes/No/All)? y
Added scripts\get_plot.py
1 file(s) created.