Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize core operations, improving on the user input #1574

Merged
merged 10 commits into from
Dec 27, 2021

Conversation

umbynos
Copy link
Contributor

@umbynos umbynos commented Nov 26, 2021

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • What kind of change does this PR introduce?

Feature

  • What is the current behavior?

installing / uninstalling / upgrading / downloading cores is not case insesitive

  • What is the new behavior?

now it is's case-insensitive, so it works if you try to core install Arduino:samd

no

  • Other information:

See how to contribute

@umbynos umbynos added type: enhancement Proposed improvement topic: code Related to content of the project itself criticality: low Of low impact labels Nov 26, 2021
@umbynos umbynos requested a review from a team November 26, 2021 13:31
@umbynos umbynos self-assigned this Nov 26, 2021
cli/arguments/reference.go Outdated Show resolved Hide resolved
Comment on lines 40 to 44
func ParseReferences(args []string, parseArch bool) ([]*Reference, error) {
func ParseReferences(args []string, inst *rpc.Instance) ([]*Reference, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change to the public API, so it must be documented following the standard procedure:
https://arduino.github.io/arduino-cli/dev/CONTRIBUTING/#pull-request-checklist

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should really start thinking about putting some of the modules under the internal package, the cli module is one that doesn't have much use outside the arduino-cli.

cli/arguments/reference.go Outdated Show resolved Hide resolved
cli/arguments/reference.go Outdated Show resolved Hide resolved
cli/arguments/reference.go Outdated Show resolved Hide resolved
cli/arguments/reference.go Outdated Show resolved Hide resolved
@umbynos umbynos force-pushed the umbynos/case_insensitive_package_platform branch 2 times, most recently from 0bdd20b to 2ea50f3 Compare December 14, 2021 16:58
@umbynos umbynos force-pushed the umbynos/case_insensitive_package_platform branch from 2ea50f3 to ed0f442 Compare December 15, 2021 09:38
@umbynos umbynos force-pushed the umbynos/case_insensitive_package_platform branch from ed0f442 to 821d048 Compare December 15, 2021 11:41
docs/UPGRADING.md Outdated Show resolved Hide resolved
docs/UPGRADING.md Outdated Show resolved Hide resolved
@umbynos umbynos force-pushed the umbynos/case_insensitive_package_platform branch from 0f82574 to f28f0d3 Compare December 16, 2021 10:49
@umbynos umbynos changed the title Umbynos/case insensitive package platform Optimize core operations, improving on the user input Dec 16, 2021
@umbynos umbynos force-pushed the umbynos/case_insensitive_package_platform branch from f28f0d3 to 375aa2c Compare December 16, 2021 11:00
@arduino arduino deleted a comment Dec 17, 2021
@arduino arduino deleted a comment Dec 17, 2021
@arduino arduino deleted a comment Dec 17, 2021
@umbynos umbynos force-pushed the umbynos/case_insensitive_package_platform branch 2 times, most recently from cbaed7f to 96b8f31 Compare December 21, 2021 10:09
cli/arguments/reference.go Outdated Show resolved Hide resolved
docs/UPGRADING.md Outdated Show resolved Hide resolved
docs/UPGRADING.md Outdated Show resolved Hide resolved
@umbynos umbynos force-pushed the umbynos/case_insensitive_package_platform branch from 96b8f31 to 3849a27 Compare December 21, 2021 13:34
@umbynos umbynos merged commit e63c798 into master Dec 27, 2021
@umbynos umbynos deleted the umbynos/case_insensitive_package_platform branch December 27, 2021 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
criticality: low Of low impact topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants