rtCamp / Frappe-Manager

A CLI tool based on Docker Compose to easily manage Frappe based projects.
MIT License
109 stars 23 forks source link

fm run <path/to/script> #89

Open rahul286 opened 8 months ago

rahul286 commented 8 months ago

While importing data, we are doing a lot of:

fm shell erp2
bench --site erp2.localhost execute erpnext.erpnext_importer.insert_invoices.fetch_invoice_data

Instead of this, we can do:

fm shell run erpnext.erpnext_importer.insert_invoices.fetch_invoice_data

or

fm shell execute erpnext.erpnext_importer.insert_invoices.fetch_invoice_data

We need to handle docker bind mount. Some checks or do it on the fly.

Also, the import script may have some dependencies that will require some addition work.