6 ms·
Say what you will about PowerShell, the commands are really discoverable and intuitive. The list of approved verbs is helpful too when writing your own cmdlets:
by shitloadofbooks 6y ago
Say what you will about PowerShell, the commands are really discoverable and intuitive. The list of approved verbs is helpful too when writing your own cmdlets: https://docs.microsoft.com/en-us/powershell/scripting/developer/cmdlet/approved-verbs-for-windows-powershell-commands https://docs.microsoft.com/en-us/powershell/scripting/develo...
- LeonB 6y agoAs mentioned in that document, you can use 'Get-Verb' to list all the approved verbs. In addition to standard naming of cmdLets, I find it helpful to have my own very short aliases and helper functions defined in my profile, to make powershell more convenient.
- logicprog 6y agoAll those capital letters seem annoying to type to me, though. Is PowerShell case-insensitive?
- soheilpro 6y agoYes.
- colejohnson66 6y agoIsn’t that due to Windows (and NTFS (by default)) being case insensitive?
- soheilpro 6y agoNo. PowerShell commands are not necessarily stored on disk.
- tuatoru 6y agoDiscoverable? Not for me. I've been reading the output of 'help' and reading it, and reading it, and I can't see a paradigm (apart from prolixity) or much consistency. Unix commands have the advantage of brevity, and the inconsistencies somehow aid memorization.
- LeonB 6y agoGet-command, Get-member And get-help can make things more discoverable.
- godtoldmetodoit 6y agoGet-Command is your friend, especially with the -Noun parameter. Get-Command -Noun Computer will return you all the cmdlets dealing with Computer. It returns Rename, Restart and Stop computer cmdlets. Very handy.
- jspaetzel 6y agoThey're discoverable in the way that documentation is discoverable.