NServiceBus icon indicating copy to clipboard operation
NServiceBus copied to clipboard

need a PS cmdlet for Get-NServiceBusLicense

Open JustinThirkell opened this issue 13 years ago • 3 comments

When i install a machine-wide license using the PS module, there is a) no indication the install was successful and b) no way of determining what license(s) are actually installed.

Typical behaviour for PS is that creating or installing something will output the result. eg

C:\dev> new-item d:\temp\foobar.txt -type file

    Directory: D:\temp

Mode           LastWriteTime       Length Name
----           -------------       ------ ----
-a---  28/11/2013 12:01 p.m.            0 foobar.txt

Install-NServiceBusLicense should give some feedback the install was successful but I don't get anything.

This is made worse by there being no way to determine via PS what licenses are installed. Ideally there would be a Get-NServiceBusLicense cmdlet which would retrieve all the installed licenses (and their properties) - this would make it easy to see what machine-wide licenses have been installed. And/or a command like "Test-NServiceBusLicense -version 4.1". But Get-NServiceBusLicense would be more useful.

JustinThirkell avatar Nov 27 '13 23:11 JustinThirkell

All I hear is that @thirkcircus is sending us an awesome PR :wink:

BTW, powershell stuff was moved into https://github.com/Particular/NServiceBus.PowerShell

johnsimons avatar Nov 27 '13 23:11 johnsimons

ahaha, yes. :smile: I'm buried at the moment but this drives me nuts every time I go to deal with nsb licenses. Putting the issue in so i don't forget. Might get round to this one at some point...

JustinThirkell avatar Nov 27 '13 23:11 JustinThirkell

All I hear is that @thirkcircus is sending us an awesome PR

awesome PR is in. :wink: https://github.com/Particular/NServiceBus.PowerShell/pull/4

JustinThirkell avatar Dec 18 '13 00:12 JustinThirkell