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

pass --fqbn to plugin #174

Merged
merged 1 commit into from
Jul 13, 2023
Merged

pass --fqbn to plugin #174

merged 1 commit into from
Jul 13, 2023

Conversation

umbynos
Copy link
Contributor

@umbynos umbynos commented Jul 13, 2023

@umbynos umbynos added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jul 13, 2023
@umbynos umbynos requested a review from cmaglie July 13, 2023 09:31
@umbynos umbynos self-assigned this Jul 13, 2023
@codecov-commenter
Copy link

Codecov Report

Patch coverage has no change and project coverage change: -0.03 ⚠️

Comparison is base (0b4fcb4) 7.00% compared to head (777256c) 6.98%.

Additional details and impacted files
@@            Coverage Diff             @@
##           plugins    #174      +/-   ##
==========================================
- Coverage     7.00%   6.98%   -0.03%     
==========================================
  Files           23      23              
  Lines         2042    2048       +6     
==========================================
  Hits           143     143              
- Misses        1841    1847       +6     
  Partials        58      58              
Flag Coverage Δ
unit 6.98% <0.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cli/firmware/flash.go 0.00% <0.00%> (ø)
cli/firmware/getversion.go 0.00% <0.00%> (ø)
plugin/plugin.go 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@umbynos umbynos merged commit f584507 into plugins Jul 13, 2023
57 checks passed
@umbynos umbynos deleted the plugins-enhancement branch July 13, 2023 10:13
cmaglie added a commit that referenced this pull request Jul 14, 2023
* Removed useless 'required' tag

* Added fields for plugin system

* Made LatestFirmware a method of BoardIndex

* Fixed some linter warnings

* Tools required for plugins are now downloaded

* Created infrastructure for plugin based get-version

Equivalent code changes, no changes in behaviour

* Added FwPlugin object to ease access to fwuploader-plugins

* get-version now supports fwuploader-plugins

* Added license cache

* Better recording of errors from plugins

* Extracted function to exec fwuploader plugins

* Small cosmetic changes

- perform arg checks early
- removed unneeded err variable in function scope

* Another cosmetic change

* Prepared scaffolding for flash-firmware command using plugins

* Implemented plugin-based firmware upload

* Using packagemanager to handle package_index downloads

* Added additional index URLx flags to ease plugin development

* Added missing license data

* Allow file paths as additional 'urls'

* Verify signarure only on offical indexes

* Improve error messages and avoid panic in case of missing tool

* Avoid double buffering of command output in getFirmwareVersion

* Allow merging with overwrite

This means that additional indexex are allowed to overwrite official boards.

* Added plugin-based firmware index

* add support for arduino/fwuploader-plugin-helper#9 (#174)

* Created scaffolding to implement certificate upload via plugin

* Removed useless variable

* Avoid globals arguemnts in flash-certificate

* Factored function to scrape TLS certs from webserver

* Factored function to read certificates

* Small refactoring in cert building subroutines

* Factored function to encode certs as PEM

* Added certificate flash support for plugins

* fix licensed

* Make board override less strict

* Do not consider LICENSE files in plugins archive

* Fixed PEM decoding... 🤦

* pass `-v` and `--log-level` to plugin (#175)

* move vars to global

* add support for arduino/fwuploader-plugin-helper#10

* Update cli/common/common.go

Co-authored-by: Umberto Baldi <34278123+umbynos@users.noreply.github.com>

* Renamed variable for clarity

---------

Co-authored-by: Umberto Baldi <34278123+umbynos@users.noreply.github.com>
Co-authored-by: Umberto Baldi <u.baldi@arduino.cc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

3 participants