Title: Request: Improve user experience of Get-WinEvent -FilterHashtable · Issue #9239 · PowerShell/PowerShell · GitHub
Open Graph Title: Request: Improve user experience of Get-WinEvent -FilterHashtable · Issue #9239 · PowerShell/PowerShell
X Title: Request: Improve user experience of Get-WinEvent -FilterHashtable · Issue #9239 · PowerShell/PowerShell
Description: Get-WinEvent uses -FilterHashtable @{..} as one way to describe which events to retrieve, and the hashtable takes keys like ID, StartTime. But there's no way to find out which keys are valid without reading the help. This feels like a PS...
Open Graph Description: Get-WinEvent uses -FilterHashtable @{..} as one way to describe which events to retrieve, and the hashtable takes keys like ID, StartTime. But there's no way to find out which keys are valid withou...
X Description: Get-WinEvent uses -FilterHashtable @{..} as one way to describe which events to retrieve, and the hashtable takes keys like ID, StartTime. But there's no way to find out which keys are valid wi...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/9239
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Request: Improve user experience of Get-WinEvent -FilterHashtable","articleBody":"Get-WinEvent uses `-FilterHashtable @{..}` as one way to describe which events to retrieve, and the hashtable takes keys like `ID`, `StartTime`. But there's no way to find out which keys are valid without reading the help.\r\n\r\nThis feels like a PS-style design would have exposed those keys as parameters, they would show up for tab completion and introspection, and then splatting would be available for the hashtable use case.\r\n\r\nMy experience would be better if there was a quick way to see the valid keys without having to refer to the help, so:\r\n\r\n1. Would it be possible for tab-completion to suggest valid hashtable keys, if the hashtable was being written in this context, e.g. `get-winevent -filterhashtable @{ \u003ctab\u003e` ?\r\n1. Would it be possible to make `Ctrl-Space` suggestions, which currently lists all parameters in a nice view, also support showing some text which isn't parameters - hashtable keys specifically in this case, or in a more general case cmdlets could optionally show a cheatsheet section with some free-form text.\r\n1. What about exposing the keys as parameters, making them usable by splatting, and deprecating -FilterHashTable?\r\n\r\n(FilterXPath and FilterXml parameters also exist, I have no comment on them, they can stay how they are from my point of view).","author":{"url":"https://github.com/HumanEquivalentUnit","@type":"Person","name":"HumanEquivalentUnit"},"datePublished":"2019-03-27T23:02:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/9239/PowerShell/issues/9239"}
| 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:068d1dcd-a632-aef1-36a5-6e6b782867a4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8EC:2B7671:DD2AC8:12A6790:6A543BC2 |
| html-safe-nonce | 4d9cf4f4d8e695b7c7e55799f1a8804fbe8d03e18cee427af4779562f50fad64 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEVDOjJCNzY3MTpERDJBQzg6MTJBNjc5MDo2QTU0M0JDMiIsInZpc2l0b3JfaWQiOiI2NTMyNDc4NTg4NDk5MDE2NjQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a35cd928b10efd2e70812825c2f445920c7ce21c1d493daea230cce835756b78 |
| hovercard-subject-tag | issue:426220609 |
| 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/9239/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a297abcb25da831548171d62c5a010b3bab2861ccb7fc0367ff04205e21b999/PowerShell/PowerShell/issues/9239 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a297abcb25da831548171d62c5a010b3bab2861ccb7fc0367ff04205e21b999/PowerShell/PowerShell/issues/9239 |
| og:image:alt | Get-WinEvent uses -FilterHashtable @{..} as one way to describe which events to retrieve, and the hashtable takes keys like ID, StartTime. But there's no way to find out which keys are valid withou... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HumanEquivalentUnit |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width