René's URL Explorer Experiment


Title: Format-Hex: Handle all primitive types & better array input handling by vexx32 · Pull Request #8596 · PowerShell/PowerShell · GitHub

Open Graph Title: Format-Hex: Handle all primitive types & better array input handling by vexx32 · Pull Request #8596 · PowerShell/PowerShell

X Title: Format-Hex: Handle all primitive types & better array input handling by vexx32 · Pull Request #8596 · PowerShell/PowerShell

Description: PR Summary Fixes #3358 Adds support to Format-Hex for any primitive type, along with strings and direct file input. Notes: Renamed class according to standard naming convention FormatHex -> FormatHexCommand Happy to revert if this change is inappropriate, but seemed weird it didn't follow convention -LiteralPath param altered to accept ValueFromPipelineByPropertyName Code borrowed from Jason Shirk (@lzybkr)'s POC in #3358 and repurposed to keep capability to process files and strings Additional code handling jagged arrays and various types of weird inputs that might happen with piped input Test for new behaviours added Behaviour change Cmdlet now treats a homogenous piped input array as a single item, so that pipeline input behaviour should mirror directly presented -InputObject behaviour. In other words, [byte[]](1, 2, 3) | fhx will be treated as a single array and displayed in a single line, instead of being treated as completely separate items. When a similar jagged array is presented, however, the cmdlet will notice and output each pipeline item as a separate display. This should have pretty high consistency in terms of handling string input mixed with other things, as well as just handling jagged input with pretty good consistency with how it would handle standalone input. Enums are supported and will be processed according to their base type (int32 for PowerShell-native enums, all valid base primitives from C#). Kinda fun to work with, now. 😄 PR Checklist PR has a meaningful title Use the present tense and imperative mood when describing your changes Summarized changes Change is not breaking Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header This PR is ready to merge and is not Work in Progress. If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready. User-facing changes Not Applicable OR User-facing Documentation needed Issue filed - Issue link: Testing - New and feature Not Applicable or can only be tested interactively OR Make sure you've added a new test if existing tests do not effectively test the code changed Add [feature] if the change is significant or affects feature tests

Open Graph Description: PR Summary Fixes #3358 Adds support to Format-Hex for any primitive type, along with strings and direct file input. Notes: Renamed class according to standard naming convention FormatHex -> For...

X Description: PR Summary Fixes #3358 Adds support to Format-Hex for any primitive type, along with strings and direct file input. Notes: Renamed class according to standard naming convention FormatHex ->...

Opengraph URL: https://github.com/PowerShell/PowerShell/pull/8596

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:63ff74fd-47df-95bc-900c-1ea95105546d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC084:1C6B09:E4B53:13A42C:6AFD4B3D
html-safe-nonce210b8dce535c7adba525d934eed27f18ee25cad672fb25325f51dc8b5af15ce6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDg0OjFDNkIwOTpFNEI1MzoxM0E0MkM6NkFGRDRCM0QiLCJ2aXNpdG9yX2lkIjoiNTg5OTU1MDk1NjI3MzM1NTU4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac62e6a36148ba880284b277f17612c6df6ad3865dd3b6e980bcf661afc535a708
hovercard-subject-tagpull_request:242473789
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/PowerShell/PowerShell/pull/8596/files
twitter:imagehttps://avatars.githubusercontent.com/u/32407840?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/32407840?s=400&v=4
og:image:altPR Summary Fixes #3358 Adds support to Format-Hex for any primitive type, along with strings and direct file input. Notes: Renamed class according to standard naming convention FormatHex -> For...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb6f01f7cb9f35f8c09949773241a3d49dd04b340
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/pull/8596/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F8596%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F8596%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/pull/8596/files
Reloadhttps://github.com/PowerShell/PowerShell/pull/8596/files
Reloadhttps://github.com/PowerShell/PowerShell/pull/8596/files
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests365 (365)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
Sign up for GitHub https://github.com/signup?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
vexx32:FormatHexImprovementshttps://github.com/vexx32/PowerShell/tree/FormatHexImprovements
Conversation 6 https://github.com/PowerShell/PowerShell/pull/8596
Commits 4 https://github.com/PowerShell/PowerShell/pull/8596/commits
Checks 0 https://github.com/PowerShell/PowerShell/pull/8596/checks
Files changed https://github.com/PowerShell/PowerShell/pull/8596/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/8596/files
Format-Hex: Handle all primitive types & better array input handling https://github.com/PowerShell/PowerShell/pull/8596/files#top
Show all changes 4 commits https://github.com/PowerShell/PowerShell/pull/8596/files
880ea25 :sparkles: Update Format-Hex to support all primitives vexx32 Jan 6, 2019 https://github.com/PowerShell/PowerShell/pull/8596/commits/880ea25d64594faa4a85cf07a4cb2e7123334636
35e7148 :white_check_mark: Add tests for new capabilities for Format-Hex vexx32 Jan 6, 2019 https://github.com/PowerShell/PowerShell/pull/8596/commits/35e7148e543216cb87db519d906fc9a9e7f9adfb
7c83d84 :speech_balloon: Resolve CodeFactor issues vexx32 Jan 6, 2019 https://github.com/PowerShell/PowerShell/pull/8596/commits/7c83d84393a1dd95528ae5732b78e58b524007bb
e0b5640 :wrench: Fixing failing tests vexx32 Jan 6, 2019 https://github.com/PowerShell/PowerShell/pull/8596/commits/e0b56403da4ca68f9d303b40ae6709d6bed3b729
Clear filters https://github.com/PowerShell/PowerShell/pull/8596/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/8596/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/8596/files
Format-Hex.cs https://github.com/PowerShell/PowerShell/pull/8596/files#diff-59d7905db8c7f76204d6de9960824b0b7011a72f76b70b14a7623b78c5382605
FormatHex.Tests.ps1 https://github.com/PowerShell/PowerShell/pull/8596/files#diff-447f64e41c0e940fea001e99a31b9903b86c52ceee1e4ad36ba9a4fcfdbf96f8
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/8596/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.