Configuration Versioning #68
jdhitsolutions
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
|
For now, I'm defining variables in my configuration script: Set-Variable -Name PSRunVersion -Value '2.1.0' -Scope Global
Set-Variable -Name PSRunAuthor -Value 'Jeff Hicks' -Scope Global
Set-Variable -Name PSRunConfiguration -Value $MyInvocation.MyCommand.Path -Scope Global
Set-Variable -Name PSRunConfigurationDate -Value (Get-Item $MyInvocation.MyCommand.Path).LastWriteTime -Scope GlobalAnd then defining a function. Start-PSRunFunctionRegistration
Function global:Get-PSRunVersion {
[PSCustomObject]@{
Version = $PSRunVersion
Author = $PSRunAuthor
Configuration = $PSRunConfiguration
LastModified = $PSRunConfigurationDate
} | Out-Host
#reload
psrun
}
This will only be useful once we find a way for defined functions to always be displayed. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
Since a user needs to write a configuration script to use this module, I wonder if there is any benefit in providing a versioning mechanism. As I'm developing and revising my configuration, it would be helpful to know what version I'm currently using. I'm thinking of a hot key I could press to show version info. Maybe the user could define variables in their script like
$PSRunVersionand$PSRunConfigurationto show the configuration file.It would be nice to get some feedback on this idea from other module users.
Beta Was this translation helpful? Give feedback.
All reactions