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

refactor: Misc changes in commands #15060

Merged
merged 3 commits into from
Nov 26, 2021

Conversation

gavindsouza
Copy link
Collaborator

@gavindsouza gavindsouza commented Nov 23, 2021

Changes

  • Refactored browse command via 1c6691d
  • TestCommands - Replaced terminal colour handling using click
  • Changed path for archiving sites from archived_sites to archived/sites - This is for consistency in terms of maintaining a common folder for everything archived: ./archived/apps, ./archived/sites, ./archived/envs (so far) [ref: https://github.com/feat: get-app on steroids bench#1208]

I also plan on writing a patch in bench to move all contents of archived_sites into archived/sites and making archived_sites a symbolic link that points to archived/sites

@gavindsouza gavindsouza changed the title refactor: Commands refactor: Misc changes in commands Nov 23, 2021
@codecov
Copy link

codecov bot commented Nov 23, 2021

Codecov Report

Merging #15060 (0657524) into develop (f785b02) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop   #15060      +/-   ##
===========================================
- Coverage    50.50%   50.45%   -0.05%     
===========================================
  Files          736      736              
  Lines        64337    64337              
  Branches      5301     5301              
===========================================
- Hits         32491    32463      -28     
- Misses       28040    28068      +28     
  Partials      3806     3806              
Flag Coverage Δ
server 57.41% <ø> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

* Manage colours through click
* Standardize the command's behaviour for consistency :')
* Use click instead of webbrowser module
* Simplify logic
* Add type hints for Command test suite
* Remove support utils - dead code
@gavindsouza gavindsouza marked this pull request as ready for review November 25, 2021 12:22
@gavindsouza gavindsouza requested review from a team and hasnain2808 and removed request for a team November 25, 2021 12:22
@mergify mergify bot merged commit 06470dd into frappe:develop Nov 26, 2021
gavindsouza added a commit to gavindsouza/bench that referenced this pull request Nov 26, 2021
This patch runs only if Frappe >= v14. Doesn't do anything else

Frappe PR: frappe/frappe#15060
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants