Skip to content

feat/Adding support for which-language --all#301

Merged
blast-hardcheese merged 4 commits intomainfrom
dstewart/feat/which-languages-all
Oct 29, 2024
Merged

feat/Adding support for which-language --all#301
blast-hardcheese merged 4 commits intomainfrom
dstewart/feat/which-languages-all

Conversation

@blast-hardcheese
Copy link
Contributor

Why

Determining which languages are currently in play is a useful operation. For example:

~/workspace$ ./cmd/upm/upm which-language --all | \
                xargs -I% ./cmd/upm/upm list --all --format json --lang %

[{"name":"click","version":"8.1.7"},{"name":"markupsafe","version":"3.0.2"},{"name":"workspace","version":"0.1.0"},{"name":"blinker","version":"1.8.2"},{"name":"colorama","version":"0.4.6"},{"name":"flask","version":"3.0.3"},{"name":"itsdangerous","version":"2.2.0"},{"name":"jinja2","version":"3.1.4"},{"name":"werkzeug","version":"3.0.6"}]
[{"name":"follow-redirects","version":"1.15.9"},{"name":"@types/node","version":"20.12.14"},{"name":"@types/bun","version":"1.1.12"},{"name":"combined-stream","version":"1.0.8"},{"name":"delayed-stream","version":"1.0.0"},{"name":"form-data","version":"4.0.1"},{"name":"mime-types","version":"2.1.35"},{"name":"proxy-from-env","version":"1.1.0"},{"name":"bun-types","version":"1.1.32"},{"name":"asynckit","version":"0.4.0"},{"name":"axios","version":"1.7.7"},{"name":"mime-db","version":"1.52.0"},{"name":"typescript","version":"5.6.3"},{"name":"undici-types","version":"5.26.5"},{"name":"@types/ws","version":"8.5.12"}]

What changed

  • Added --all to which-language
  • Added IsActive to the api.LanguageBackend interface and Python/Node backends for now

Test plan

The above command worked

@blast-hardcheese blast-hardcheese requested a review from a team as a code owner October 29, 2024 00:27
@blast-hardcheese blast-hardcheese requested review from vlinkz and removed request for a team October 29, 2024 00:27
@masad-frost masad-frost requested review from a team and bradymadden97 and removed request for a team October 29, 2024 01:36
@blast-hardcheese blast-hardcheese merged commit 01e96db into main Oct 29, 2024
@blast-hardcheese blast-hardcheese deleted the dstewart/feat/which-languages-all branch October 29, 2024 19:20
@blast-hardcheese blast-hardcheese added enhancement New feature or request minor labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants