Title: In-line splatting · Issue #17706 · PowerShell/PowerShell · GitHub
Open Graph Title: In-line splatting · Issue #17706 · PowerShell/PowerShell
X Title: In-line splatting · Issue #17706 · PowerShell/PowerShell
Description: Summary of the new feature / enhancement Currently you must define a variable to splat parameters to a command. Allow splatting a hashtable directly. This could simplify syntax and reduce mistakes from splatting in loops where the curren...
Open Graph Description: Summary of the new feature / enhancement Currently you must define a variable to splat parameters to a command. Allow splatting a hashtable directly. This could simplify syntax and reduce mistakes ...
X Description: Summary of the new feature / enhancement Currently you must define a variable to splat parameters to a command. Allow splatting a hashtable directly. This could simplify syntax and reduce mistakes ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/17706
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"In-line splatting","articleBody":"### Summary of the new feature / enhancement\n\nCurrently you must define a variable to splat parameters to a command. Allow splatting a hashtable directly.\r\n\r\nThis could simplify syntax and reduce mistakes from splatting in loops where the current loop fails to update the splatted variable and the wrong iteration's parameters are applied.\r\n\r\nAdditionally, it may to provide parameter tab completion for an in-line splat than a variable defined before the function is called.\n\n### Proposed technical implementation details (optional)\n\n```\r\nInvoke-Command @{\r\n ComputerName = 'computer1','computer2','computer3'\r\n ScriptBlock = { 'my name is {0}' -f $env:computername }\r\n ErrorAction = 'stop'\r\n}\r\n\r\n```","author":{"url":"https://github.com/saladproblems","@type":"Person","name":"saladproblems"},"datePublished":"2022-07-18T21:05:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/17706/PowerShell/issues/17706"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3bb656ea-3d4b-a0a0-542b-a6c33d7e980c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF0C:223D7:8BAE2F:BD8DFA:6A581699 |
| html-safe-nonce | 9a1f4d5a1dac025e6a68da5fb9104c27f692566d88331910c9f2a1bf1587e306 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjBDOjIyM0Q3OjhCQUUyRjpCRDhERkE6NkE1ODE2OTkiLCJ2aXNpdG9yX2lkIjoiNTE3OTE1NTQ5MDQwOTAyNzIyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 28a281509c773f9f0bca0ccd04d9cf96790713be0bf7d0528458caa0e5191fe5 |
| hovercard-subject-tag | issue:1308632666 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/17706/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ecd286b94379bdba40cd826fad22e77cca7cc9d81e153b93af95cec9f69148db/PowerShell/PowerShell/issues/17706 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ecd286b94379bdba40cd826fad22e77cca7cc9d81e153b93af95cec9f69148db/PowerShell/PowerShell/issues/17706 |
| og:image:alt | Summary of the new feature / enhancement Currently you must define a variable to splat parameters to a command. Allow splatting a hashtable directly. This could simplify syntax and reduce mistakes ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | saladproblems |
| hostname | github.com |
| expected-hostname | github.com |
| None | 49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3fb1f684e7a833eb1b2d01d39875a2b52cb4fe9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width