Skip to content
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

Feature request: Generate splatting command from command #736

Closed
skest3qc opened this issue May 12, 2017 · 4 comments
Closed

Feature request: Generate splatting command from command #736

skest3qc opened this issue May 12, 2017 · 4 comments
Labels
Issue-Enhancement A feature request (enhancement).

Comments

@skest3qc
Copy link

skest3qc commented May 12, 2017

Hi,

it would be nice to be able to create a splatting command, f.e selecting the long command -> right click -> create splatting command

Before:
Get-Process -Name explorer -ComputerName localhost -Verbose: $true -ErrorAction Stop

After the conversion it could look like this:

$params=@{
Name = "explorer"
Computername = "localhost"
Verbose = $true
ErrorAction = "Stop"
}
Get-Process @params

This is helpful if you have long commands and it makes it easier to read the code.

Thanks

@daviwil
Copy link
Contributor

daviwil commented May 12, 2017

Definitely, we've thought about this in the past. @kapilmb, want to give that a shot at some point?

@daviwil daviwil added Area-Language Server Issue-Enhancement A feature request (enhancement). labels May 12, 2017
@daviwil daviwil added this to the June 2017 milestone May 12, 2017
@kapilmb
Copy link

kapilmb commented May 13, 2017

@daviwil Sure.

@mpearon
Copy link

mpearon commented May 17, 2017

This is the same as #517. There was a little bit of strategic planning going on in that one, just in case it matters.
I'm excited to see this one happen!

@daviwil
Copy link
Contributor

daviwil commented May 17, 2017

Good catch! I'll close this one in favor of the other since it came first. Please subscribe to #517 to be notified when this feature gets implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement A feature request (enhancement).
Projects
None yet
Development

No branches or pull requests

4 participants