Hacker News new | ask | show | jobs
by AnIdiotOnTheNet 2112 days ago
PowerShell does an okay job at command line discoverability in my experience. When using a cmdlet I'll think "I hope there's an argument for X" and then I can hit tab after '-' and cycle through all the available arguments. As another post mentioned, this unfortunately falls down a bit with cmdlet names themselves because they start with the verb instead of the noun: Get-<tab> isn't helpful the way NetAdapter-<tab> would be.
2 comments

Fish is similar in this way, if you're not on Windows and thus don't have access to PowerShell.
PowerShell is available for Linux.

There's also Elvish, Nushell, and a few other attempts in a similar vein.

I take 'similar vein' as grand euphemism.
PowerShell is besides Linux also available on Unix.
Unix is a family of OSes that includes Linux in particular.
Cycling tabs is not effective. PSreadline supports CTRL+SPACE completition - just type - and then CTRL+SPACE and it will show menu with ALL arguments. The same works if you start argument (i.e. -P<CTRL+SPACE> shows all params starting with P)
Ctrl-Space on PowerShell is outstanding, as long as your devs are actually properly commenting their scripts (I assume your in-house PowerShell is put into modules that get installed on user machines).
It has no relation to comments.