-
Notifications
You must be signed in to change notification settings - Fork 13
Updated 'Function' Snippets #47
base: master
Are you sure you want to change the base?
Conversation
Added 'Advanced Function Cmdlet' snippet. Syntax layout is based on Microsoft and Community best practices.
- Updated 'Function Cmdlet' snippet to include some best practice changes and spacing - Updated 'Advanced Cmdlet Cmdlet' to include OutputType
Thanks for this! i'll be taking a look at it momentarily. |
The test failures appear unrelated. |
These are very nice and provide a lot of guidance, thanks! i'd prefer that the function snippet be simpler. For just writing a function, i'm not sure the i think i'd prefer that there be another snippet to provide documentation generation (maybe we replace the current doc snippets with your stuff) so that users can choose to add it. Do you agree? Would you mind making that switch? We could even make the Begin, Process, End, its own snippet too. i'm not writing powershell for more than a couple scripts to build, test, and deploy NuGets so i'm very open to input. i'll try to get those tests fixed! They aren't very helpful in their current state! |
I'm glad you made all of those points; I was actually thinking, after I finished the mods in this PR, about adding a greater level of modularity and breaking out snippets for:
I have some ideas on how we can achieve that; I'll make some edits and commit the changes to this PR. |
Yeah this sounds great. I'm excited to see it :)
|
If you merge in master, i think you may get the test fixes i tried to make as well. |
Okay, cool; I'll update my remote branch before I commit. |
I'm not a CoffeeScript expert; some of the formatting may need updated and/or other best practice followed.