You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #346 we modify -Contemplate to open the current koan topic in the preferred editor. The current implementation requires that we re-run Get-Karma to evaluate where the user is, meaning this switch will appear to be quite slow.
Instead, we can cache the currently completed topic information, either in the module PSM1 or in the settings file.
Context "Private or Public? What are the use cases? Parameters? Options?"
Internally, Get-Karma needs to store the current topic progress information into a module-scoped variable after it has evaluated the user's progress. This could potentially be persisted as a setting or series of settings via Set-PSKoanSetting as well, so this information isn't lost when the user restarts their PowerShell session.
Then, Show-Karma needs to reference this stored data, checking to see if it has been set. Get-Karma would only need to be invoked if this data is not currently present.
The text was updated successfully, but these errors were encountered:
Describe "Functionality"
In #346 we modify
-Contemplate
to open the current koan topic in the preferred editor. The current implementation requires that we re-runGet-Karma
to evaluate where the user is, meaning this switch will appear to be quite slow.Instead, we can cache the currently completed topic information, either in the module PSM1 or in the settings file.
Context "Private or Public? What are the use cases? Parameters? Options?"
Internally,
Get-Karma
needs to store the current topic progress information into a module-scoped variable after it has evaluated the user's progress. This could potentially be persisted as a setting or series of settings viaSet-PSKoanSetting
as well, so this information isn't lost when the user restarts their PowerShell session.Then,
Show-Karma
needs to reference this stored data, checking to see if it has been set.Get-Karma
would only need to be invoked if this data is not currently present.The text was updated successfully, but these errors were encountered: