Title: Format-Hex: Support returning bare value strings · Issue #9403 · PowerShell/PowerShell · GitHub
Open Graph Title: Format-Hex: Support returning bare value strings · Issue #9403 · PowerShell/PowerShell
X Title: Format-Hex: Support returning bare value strings · Issue #9403 · PowerShell/PowerShell
Description: Summary of the new feature/enhancement Format-Hex is a very useful cmdlet at times, but it could be made much more versatile if it could simply return the bare string values that it generates, without the headers and other surrounding co...
Open Graph Description: Summary of the new feature/enhancement Format-Hex is a very useful cmdlet at times, but it could be made much more versatile if it could simply return the bare string values that it generates, with...
X Description: Summary of the new feature/enhancement Format-Hex is a very useful cmdlet at times, but it could be made much more versatile if it could simply return the bare string values that it generates, with...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/9403
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Format-Hex: Support returning bare value strings","articleBody":"# Summary of the new feature/enhancement\r\n\r\nFormat-Hex is a very useful cmdlet at times, but it could be made much more versatile if it could simply return the bare string values that it generates, without the headers and other surrounding context data, on request.\r\n\r\n# Proposed technical implementation details (optional)\r\n\r\nAdd a new parameter to Format-Hex called `-Bare`, `-ValueOnly`, or `-Raw` (name up for discussion). This would cause the raw hex data to be sent to output as-is, without the column / table layout or row/column names, just a pure hexadecimal string.\r\n\r\nThis would enable use of the cmdlet for simpler data->hex conversions, and make it much easier to get the actual hex values for the bytes back.\r\n\r\n/cc @rkeithhill @iSazonov \r\n\r\n# Examples\r\n\r\n(Thanks Ilya!)\r\n\r\n```ps\r\n 65535 | Format-Hex -AsString | Should -BeExactly \"FFFF\"\r\n 65535 | Format-Hex -AsHexValue | Should -BeExactly \"0xFFFF\"\r\n```\r\n","author":{"url":"https://github.com/vexx32","@type":"Person","name":"vexx32"},"datePublished":"2019-04-18T13:18:23Z","url":"https://github.com/PowerShell/PowerShell/issues/9403"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:d30c816d-1c64-ca46-287f-2891c5651f9e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A260:27FCA3:274E4D9:36B3684:6AFD47FC |
| html-safe-nonce | 082d31a499d9c9b391e4edf598ca6a810c54d5689fcde342af427809955be11e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjYwOjI3RkNBMzoyNzRFNEQ5OjM2QjM2ODQ6NkFGRDQ3RkMiLCJ2aXNpdG9yX2lkIjoiMTE5MjQ4MTIzNzk1OTQ5NTY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4cae0469a290ec299cd636d8c03f5299424494470a75c657499cb1fab11a699d |
| hovercard-subject-tag | issue:434766147 |
| 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/9403/issue_layout |
| twitter:image | https://opengraph.githubassets.com/325eda75075a88312897509c9f0773e488ab23988d1a4ac383f41bb973087a3a/PowerShell/PowerShell/issues/9403 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/325eda75075a88312897509c9f0773e488ab23988d1a4ac383f41bb973087a3a/PowerShell/PowerShell/issues/9403 |
| og:image:alt | Summary of the new feature/enhancement Format-Hex is a very useful cmdlet at times, but it could be made much more versatile if it could simply return the bare string values that it generates, with... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vexx32 |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| 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 | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width