René's URL Explorer Experiment


Title: Add completions for CLI by lewisacidic · Pull Request #1118 · pre-commit/pre-commit · GitHub

Open Graph Title: Add completions for CLI by lewisacidic · Pull Request #1118 · pre-commit/pre-commit

X Title: Add completions for CLI by lewisacidic · Pull Request #1118 · pre-commit/pre-commit

Description: Uses argcomplete to trivially add basic completions to the cli. This allows things like: $ pre-commit --help -V gc install run uninstall --version autoupdate help install-hooks sample-config -h clean init-templatedir migrate-config try-repo And $ pre-commit install --hook-type commit-msg pre-commit pre-push prepare-commit-msg Which can be tab toggled through once the correct completions are registered (at least in fish, I didn't try other shells yet). This is pretty basic (as might be expected from adding 2 simple lines of code!!!), it would be really nice to do a bit more, such as getting a list of the available hooks and completing pre-commit run with them. Also, at least with click CLIs, you should be able to get help messages showing up (in fish at least) which is nicer than this. Of course, this would require a rewrite of the parser code to use click... Any opinions about this sort of functionality?

Open Graph Description: Uses argcomplete to trivially add basic completions to the cli. This allows things like: $ pre-commit <TAB> --help -V gc install run uninstall -...

X Description: Uses argcomplete to trivially add basic completions to the cli. This allows things like: $ pre-commit &lt;TAB&gt; --help -V gc install run uni...

Opengraph URL: https://github.com/pre-commit/pre-commit/pull/1118

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

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:435d7f70-9015-6d09-3787-d76cf77f2616
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC744:97034:5E0BEE:7EB3B2:6B06814E
html-safe-nonce1770560c2fb7a97269a8fdd1869ae80a7ee5a4777750884e1b6173a3ae9fbe34
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzQ0Ojk3MDM0OjVFMEJFRTo3RUIzQjI6NkIwNjgxNEUiLCJ2aXNpdG9yX2lkIjoiOTgyMTAyMTQ4NzEwMzAyMDMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacbfea1498dce8b14c37abbf8604ca5019718e1250a60e77d1f042673a2f8e4c9e
hovercard-subject-tagpull_request:307702524
github-keyboard-shortcutsrepository,commits,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/pre-commit/pre-commit/pull/1118/files
twitter:imagehttps://avatars.githubusercontent.com/u/2941720?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2941720?s=400&v=4
og:image:altUses argcomplete to trivially add basic completions to the cli. This allows things like: $ pre-commit <TAB> --help -V gc install run uninstall -...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/pre-commit/pre-commit git https://github.com/pre-commit/pre-commit.git
octolytics-dimension-user_id6943086
octolytics-dimension-user_loginpre-commit
octolytics-dimension-repository_id17689377
octolytics-dimension-repository_nwopre-commit/pre-commit
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id17689377
octolytics-dimension-repository_network_root_nwopre-commit/pre-commit
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
release6d3909414814ff86ce7da4c51a0f4918a13fb41b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/pre-commit/pre-commit/pull/1118/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpre-commit%2Fpre-commit%2Fpull%2F1118%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%2Fpre-commit%2Fpre-commit%2Fpull%2F1118%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=pre-commit%2Fpre-commit
Reloadhttps://github.com/pre-commit/pre-commit/pull/1118/files
Reloadhttps://github.com/pre-commit/pre-commit/pull/1118/files
Reloadhttps://github.com/pre-commit/pre-commit/pull/1118/files
pre-commithttps://github.com/pre-commit
pre-commithttps://github.com/pre-commit/pre-commit
Codehttps://github.com/pre-commit/pre-commit
Issues17 (17)https://github.com/pre-commit/pre-commit/issues
Pull requests8 (8)https://github.com/pre-commit/pre-commit/pulls
Actionshttps://github.com/pre-commit/pre-commit/actions
Security and qualityhttps://github.com/pre-commit/pre-commit/security
Insightshttps://github.com/pre-commit/pre-commit/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpre-commit%2Fpre-commit%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpre-commit%2Fpre-commit%2Fissues%2Fnew%2Fchoose
lewisacidichttps://github.com/lewisacidic
pre-commit:masterhttps://github.com/pre-commit/pre-commit/tree/master
lewisacidic:feat/completionshttps://github.com/lewisacidic/pre-commit/tree/feat/completions
Conversation 6 https://github.com/pre-commit/pre-commit/pull/1118
Commits 1 https://github.com/pre-commit/pre-commit/pull/1118/commits
Checks 0 https://github.com/pre-commit/pre-commit/pull/1118/checks
Files changed https://github.com/pre-commit/pre-commit/pull/1118/files
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/1118/files
Add completions for CLI https://github.com/pre-commit/pre-commit/pull/1118/files#top
Show all changes 1 commit https://github.com/pre-commit/pre-commit/pull/1118/files
c3068fe feat(main): add completions to cli lewisacidic Aug 15, 2019 https://github.com/pre-commit/pre-commit/pull/1118/commits/c3068fe22221a8fda84ce213a6744abf94f25f96
Clear filters https://github.com/pre-commit/pre-commit/pull/1118/files
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/1118/files
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/1118/files
main.py https://github.com/pre-commit/pre-commit/pull/1118/files#diff-2a6cf3d151bd5a42aef5ec60519094a4662ab32d13c19a1309eacb9d7c47818b
setup.cfg https://github.com/pre-commit/pre-commit/pull/1118/files#diff-fa602a8a75dc9dcc92261bac5f533c2a85e34fcceaff63b3a3a81d9acde2fc52
pre_commit/main.pyhttps://github.com/pre-commit/pre-commit/pull/1118/files#diff-2a6cf3d151bd5a42aef5ec60519094a4662ab32d13c19a1309eacb9d7c47818b
View file https://github.com/lewisacidic/pre-commit/blob/c3068fe22221a8fda84ce213a6744abf94f25f96/pre_commit/main.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/pre-commit/pre-commit/pull/1118/{{ revealButtonHref }}
https://github.com/pre-commit/pre-commit/pull/1118/files#diff-2a6cf3d151bd5a42aef5ec60519094a4662ab32d13c19a1309eacb9d7c47818b
https://github.com/pre-commit/pre-commit/pull/1118/files#diff-2a6cf3d151bd5a42aef5ec60519094a4662ab32d13c19a1309eacb9d7c47818b
https://github.com/pre-commit/pre-commit/pull/1118/files#diff-2a6cf3d151bd5a42aef5ec60519094a4662ab32d13c19a1309eacb9d7c47818b
https://github.com/pre-commit/pre-commit/pull/1118/files#diff-2a6cf3d151bd5a42aef5ec60519094a4662ab32d13c19a1309eacb9d7c47818b
setup.cfghttps://github.com/pre-commit/pre-commit/pull/1118/files#diff-fa602a8a75dc9dcc92261bac5f533c2a85e34fcceaff63b3a3a81d9acde2fc52
View file https://github.com/lewisacidic/pre-commit/blob/c3068fe22221a8fda84ce213a6744abf94f25f96/setup.cfg
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/pre-commit/pre-commit/pull/1118/{{ revealButtonHref }}
https://github.com/pre-commit/pre-commit/pull/1118/files#diff-fa602a8a75dc9dcc92261bac5f533c2a85e34fcceaff63b3a3a81d9acde2fc52
https://github.com/pre-commit/pre-commit/pull/1118/files#diff-fa602a8a75dc9dcc92261bac5f533c2a85e34fcceaff63b3a3a81d9acde2fc52
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.