rtCamp / Frappe-Manager

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

Feat: `reset` command #213

Closed Xieyt closed 3 weeks ago

Xieyt commented 3 weeks ago

This PR:

Command: fm reset <benchname> Flags:

Command Flow/Process:

  1. Retrieve the admin password in the following order:
    • Use the --admin-password flag if provided.
    • Check the admin_password key in site_config.json.
    • Check the admin_password key in common_site_config.json.
    • Prompt the user for the admin password if not found in the above sources.
  2. Reset the bench site using the obtained admin password.
  3. Save the admin_password to site_config.json