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

Add Get-Karma function, rename Measure-Karma to Show-Karma #238

Merged
merged 26 commits into from
Sep 8, 2019
Merged

Conversation

vexx32
Copy link
Owner

@vexx32 vexx32 commented Sep 7, 2019

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 add Get-Karma which will simply return data, which can be used directly or consumed by other scripts and functions if the user desires.

Changes

  • Rename Measure-Karma to Show-Karma, leaving old name as an alias.
  • Add Get-Karma command.
  • Restructure Show-Karma to use `Get-Karma internally, and then simple make some extra calls as needed for more interactive functionality.
  • Added help documentation for Get-Karma and updated help documentation for various module cmdlets.
  • Update tests.

Checklist

  • Pull Request has a meaningful title.
  • Summarised changes.
  • Pull Request is ready to merge & is not WIP.
  • Added tests / only testable interactively.
    • Make sure you add a new test if old tests do not effectively test the code changed.
  • Added documentation / opened issue to track adding documentation at a later date.

@vexx32 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
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 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
steviecoaster previously approved these changes Sep 8, 2019
Copy link
Collaborator

@steviecoaster steviecoaster left a 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.

@vexx32 vexx32 merged commit 0cf03c8 into master Sep 8, 2019
Module Features / Bugfixes Progress automation moved this from High priority to Closed Sep 8, 2019
@vexx32 vexx32 deleted the Get-Karma branch September 8, 2019 15:21
@vexx32 vexx32 removed the PR-Needs-Review 🔍 Let's take a closer look! label Sep 25, 2019
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.
Development

Successfully merging this pull request may close these issues.

None yet

2 participants