-
Notifications
You must be signed in to change notification settings - Fork 51
Addition of comment based help #152
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
Conversation
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.
Phenomenal work, @Celerium! This undoubtedly took a ton of time. I haven't gone through the entire PR yet, but a few things spring to mind:
with support for the Get-Help -online function.
Get-Help Get-ITGlueUsers -online
This will take you to https://api.itglue.com/developer/#accounts-users
I think this is a fantastic add - definitely something I wish I had when originally using the module 🙂
What are everyone's thoughts on the structure and or next steps?
I left a few comments, but the biggest thing that calls out to me would be considering inlining the parameter descriptions. I'd love to have some dialogue on that with you.
Is there a better way to relay\show JSON examples in the help comments?
I'm not sure that there really is a great option there. This goes into a potentially larger discussion on how to best create the PSObjects that these functions use (maybe a generator of some kind, or use of object types?), but I think leaving the documentation in the state it is in currently is a great option, and we can build on it over time.
With all the new development going on when would be a good time to merge these changes? I was thinking once #157 is completed. This would give me or others time to review any grammar or consistency issues with help descriptions between the functions as well as give a good jumping-off point for further module development. |
@@ -107,13 +107,15 @@ | |||
FunctionsToExport = 'Add-ITGlueAPIKey', | |||
'Get-ITGlueAPIKey', | |||
'Remove-ITGlueAPIKey', | |||
'Test-ITGlueAPIKey', |
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.
Once #157 is complete and if this is something that has value to add to the module I can migrate the Invoke
section to the new internal API call function(s).
I've updated various, grammar, spelling, and word consistency for each of the functions and feel like this is a good starting point for the modules about_help. I can switch this to ready for review so it can be merged now or after #157. |
@Celerium this is an impressive amount of work as @CalebAlbers noted. It seems it should be merged soon. @davidhaymond thoughts? |
@adrianwells thank you, something to note as it's been a while, so it would be a good idea to do a once-over of this addition as well as make sure any of the new functions include comment-based help. |
I would love to see this merged and included in v2.3.0. I'll see if I can find time this week to review it. |
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.
I've done a quick review and made a few suggestions. Amazing work, @Celerium!
@Celerium This PR seems ready to me. Could you rebase your branch on top of the current master branch and squash all the commits? I'd like to try to keep the Git history relatively clean. It looks like you've allowed maintainers to edit the PR, so if you like, I can rebase and merge for you. |
@davidhaymond, if you could that would be wonderful. Thank you |
91aa98a
to
f8d8686
Compare
I've cleaned up this PR and merged into master! Thanks again for your incredible contribution, @Celerium! |
Addresses issue #56
Quite a bit to go over with this initial update so ZERO rush to get this in place but overall 99% of the changes are the addition of comment-based help to all wrapper functions with support for the
Get-Help <command name> -online
function.Example:
Get-Help Get-ITGlueUsers -online
I believe I have everything in a good initial state but with writing some much documentation it wouldn't surprise me if there are grammar or consistency issues between the wrappers. I have tested most of the functions after the modifications and I have not found any issues yet but I am only familiar with GET methods right now.
What are everyone's thoughts on the structure and or next steps?
Unless otherwise defined all modifications are additions of comment-based help