I always thought powershell was largely just for interacting with windows components, like installing an msi or talking to active directory.
What would you actually practically use this for on a linux box?
I always thought powershell was largely just for interacting with windows components, like installing an msi or talking to active directory.
What would you actually practically use this for on a linux box?
It is truly an interactive ("online") environment. Almost everything is typed and through introspection the shell can offer very rich auto-completion hints, without needing tedious scripts such as those used by bash/zsh.
Quick example:
get-<Tab> cycles through all get-[whatever] commands, as you'd expect. get-certificate <Tab> cycles through all parameters available for get-certificate get-certificate -ErrorAction <Tab> cycles through the list of valid values for ErrorAction (there's like 6 of them: stop, suspend, etc.)
It is also highly standardized, there's a set of "verbs" allowed so that it's much easier to find something since everything is in a certain category (https://msdn.microsoft.com/en-us/library/ms714428(v=vs.85).a...)
It has its bad/ugly bits, but the principles are quite solid. In many ways they are what I'd expect if Richie and Thompson would have designed Unix in a modern environment (i.e. not an environment where the output of your commands would be printed :) ).
1. Looks like they ported a service that does the same. https://github.com/powershell/powershelleditorservices
Powershell instead of using grep? Or as a testing framework? Or an embedded interactive REPL?
I mean, just broadly, with basically zero knowledge of powershell, what I see is a custom scripting language with a set of common 'macro' commandlets that do little tasks.
...but, I don't see how that's useful?
How do you import a package to upload a file to S3?
I can't just install https://aws.amazon.com/powershell/ right? ...because that's not ported? So...? etc. etc. for other practical tasks.
Not trolling; just genuinely curious what actual tasks are actually supported that you could actually use this for, beyond trivial stuff like 'check if file exists'?
Blog post to the announcement: http://blogs.aws.amazon.com/net/post/TxTUNCCDVSG05F/Introduc....
but there are standard http post/get/put commands so you can write your own.
[1] https://marketplace.visualstudio.com/items?itemName=ms-vscod...