Title: Add Tool.default_command() to eliminate duplication in CI steps and help messages by Copilot · Pull Request #1088 · usethis-python/usethis-python · GitHub
Open Graph Title: Add Tool.default_command() to eliminate duplication in CI steps and help messages by Copilot · Pull Request #1088 · usethis-python/usethis-python
X Title: Add Tool.default_command() to eliminate duplication in CI steps and help messages by Copilot · Pull Request #1088 · usethis-python/usethis-python
Description: The get_bitbucket_steps() methods across tool implementations contained significant duplication, repeating the same command strings used in help messages. This PR introduces Tool.default_command() to define commands once and enables a default get_bitbucket_steps() implementation.
Changes
Core Protocol Method
Added default_command() -> str to Tool protocol that returns backend-dependent command strings
Returns "uv run
Open Graph Description: The get_bitbucket_steps() methods across tool implementations contained significant duplication, repeating the same command strings used in help messages. This PR introduces Tool.default_command() ...
X Description: The get_bitbucket_steps() methods across tool implementations contained significant duplication, repeating the same command strings used in help messages. This PR introduces Tool.default_command() ...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1088
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c6ebf7f5-e08d-51f6-be5e-e40aa0b19037 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C38C:3F3E75:4C3A4:66F77:6A4D78FF |
| html-safe-nonce | 5cef7817e2ff10ea19201c2e066f544093a1284fadfceebd33fd09153ac21391 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzhDOjNGM0U3NTo0QzNBNDo2NkY3Nzo2QTRENzhGRiIsInZpc2l0b3JfaWQiOiI4MzIyNDUxMjUwNDI4NjA2NzE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 054853867133c07f95e0336001d1d268bb39a9af5d2508cc48db63d19ce0da27 |
| hovercard-subject-tag | pull_request:2979859840 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/usethis-python/usethis-python/pull/1088/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | The get_bitbucket_steps() methods across tool implementations contained significant duplication, repeating the same command strings used in help messages. This PR introduces Tool.default_command() ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f8e15305e2ab58890ca84b830615e375f5df303cf471cafcba0c08272981be3 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8608b0750fc35e283e5ec5b094bff942d7a0e197 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width