-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
Add Get-Karma function, rename Measure-Karma to Show-Karma #238
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vexx32
added
PR-Needs-Review 🔍
Let's take a closer look!
Category-Module
Pertaining to the module's functionality itself.
Category-Docs 📝
Pertaining to CBH, readme, other documentation
labels
Sep 7, 2019
Function name more appropriate for purpose. Alias left behind for Measure-Karma for backwards-compatibility.
Move internal logic from Show-Karma to Get-Karma where reasonable
This adds a short sleep between each status check for Invoke-Koan. Constantly keeping tabs on the other thread is a waste of cpu.
Removed tests only applicable to Show-Karma Fixed mock & test conditions
vexx32
force-pushed
the
Get-Karma
branch
2 times, most recently
from
September 7, 2019 14:08
2bc59b8
to
5988c0c
Compare
vexx32
changed the title
Add Get-Karma function, rename Measure-Karma to Show-Karm
Add Get-Karma function, rename Measure-Karma to Show-Karma
Sep 7, 2019
steviecoaster
previously approved these changes
Sep 8, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all makes sense to me. I don't see anything glaringly wrong here.
✅ Update tests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Category-Docs 📝
Pertaining to CBH, readme, other documentation
Category-Module
Pertaining to the module's functionality itself.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Summary
Restructure the module's main command(s) a bit.
Context
Measure-Karma is a bit of a misleading command name, as it is more of a display-only command. It is better if we have it labeled
Show-Karma
, and this gives us room to addGet-Karma
which will simply return data, which can be used directly or consumed by other scripts and functions if the user desires.Changes
Measure-Karma
toShow-Karma
, leaving old name as an alias.Get-Karma
command.Show-Karma
to use `Get-Karma internally, and then simple make some extra calls as needed for more interactive functionality.Get-Karma
and updated help documentation for various module cmdlets.Checklist