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

Use Powerline Segment class instead of the old Powerline function interface #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

madhurjain2095
Copy link

  1. Combined the two functions mem_usage and mem_usage_percent into a single class MemUsageSegment and exposed a single object of that class.
  2. Added documentation on how the parameters are used.
  3. Updated README.md to reflect the new refactored implementation.

…nt` Base class, instead of the old Powerline function interface.

2. Combined the two functions `mem_usage` and `mem_usage_percent` into a single class `MemUsageSegment` and exposed a single object of that class.
3. Added documentation on how the parameters are used.
4. Updated README.md to reflect the new refactored implementation.
@madhurjain2095
Copy link
Author

Inspired from powerline-gitstatus and powerline-docker (both of which I use)

@mKaloer
Copy link
Owner

mKaloer commented Apr 12, 2020

Hi, thanks for this - looks good to me.
However, I'm wondering what the advantage of this approach is (besides the code maybe being a bit cleaner). Since this is a breaking change, I'm not going to merge it before I'm sure it's actually worth a breaking change :)

@madhurjain2095
Copy link
Author

Hey, apologies for the delay in response (was busy with my courses)

Yeah, IMO I think it's better to move forward with the new design as per Powerline documents, and as such, reduce the technical debt that occurs with staying with the old version.

Other than that, I don't think there's any other clear advantage with this pull request.

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.

None yet

2 participants