Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: reset command #213

Merged
merged 2 commits into from
Jun 28, 2024
Merged

Feat: reset command #213

merged 2 commits into from
Jun 28, 2024

Conversation

Xieyt
Copy link
Collaborator

@Xieyt Xieyt commented Jun 27, 2024

This PR:

  • Introduces reset command
  • Internally this command reset the db of bench site and install all backend installed apps using bench reinstall command.

Command: fm reset <benchname>
Flags:

  • --admin-password (optional): Admin password

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

@Xieyt Xieyt changed the title Feat: reseggt command Feat: reset command Jun 27, 2024
@Xieyt Xieyt marked this pull request as ready for review June 28, 2024 11:48
@Xieyt Xieyt merged commit 8a64966 into develop Jun 28, 2024
1 check passed
This was referenced Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant