Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Reintroduce the `--input-file` flag for the `upload` command (#777)
* Remove deprecation from importFile param * Implement --input-file flag * Add comment in --input-file splitting step * Add e2e test for --input-x flags * Refine upload flags testing * Add --input-file file existence check * Use TrimSuffix instead of replace * Restore -i shorthand flag for --input-file and add CLI checkFlagsConflicts function * Improved build path and project name auto-detection This should make the upload command compatibile with all the reasonable usages. See #764 See #641 * Made UploadTest more resilient * upload: sketch is ignored if input-dir or input-file is specified There is no point in overriding the sketch name if the user explicitly give it via command line. * Update go-paths-helper to version 1.3.2 fixes EquivalentTo when used with abs paths * fix TestGetCommandLine * 100% coverage on detectSketchNameFromBuildPath function * Do not git-ignore all *.bin but just inside the client_example folder * slightly simplified function signature (cosmetic) Co-authored-by: Cristian Maglie <[email protected]>
- Loading branch information
Showing
with
352 additions
and 97 deletions.
- +2 −2 .gitignore
- +9 −0 arduino/sketches/sketches.go
- +11 −0 cli/upload/upload.go
- +9 −8 commands/debug/debug_test.go
- 0 commands/debug/testdata/hello/hello.ino
- +1 −0 commands/upload/burnbootloader.go
- 0 commands/upload/testdata/Blonk/Blonk.ino
- 0 commands/upload/testdata/Blonk/build/arduino.samd.mkr1000/Blonk.ino.bin
- 0 commands/upload/testdata/Blonk/build/arduino.samd.mkr1000/Blonk.ino.elf
- 0 commands/upload/testdata/Blonk/build/arduino.samd.mkr1000/Blonk.ino.hex
- 0 commands/upload/testdata/Blonk/build/arduino.samd.mkr1000/Blonk.ino.map
- 0 commands/upload/testdata/Blonk/build/arduino.samd.mkr1000/Blonk.ino.with_bootloader.bin
- 0 commands/upload/testdata/Blonk/build/arduino.samd.mkr1000/Blonk.ino.with_bootloader.hex
- 0 commands/upload/testdata/build_path_1/sketch.ino.bin
- 0 commands/upload/testdata/build_path_2/Blink.ino.bin
- 0 commands/upload/testdata/build_path_2/Blink.ino.elf
- 0 commands/upload/testdata/build_path_2/Blink.ino.hex
- 0 commands/upload/testdata/build_path_2/Blink.ino.map
- 0 commands/upload/testdata/build_path_2/Blink.ino.with_bootloader.bin
- 0 commands/upload/testdata/build_path_2/Blink.ino.with_bootloader.hex
- 0 commands/upload/testdata/build_path_3/AnotherSketch.ino.bin
- 0 commands/upload/testdata/build_path_3/Blink.ino.bin
- 0 commands/upload/testdata/build_path_3/Blink.ino.elf
- 0 commands/upload/testdata/build_path_3/Blink.ino.hex
- 0 commands/upload/testdata/build_path_3/Blink.ino.map
- 0 commands/upload/testdata/build_path_3/Blink.ino.with_bootloader.bin
- 0 commands/upload/testdata/build_path_3/Blink.ino.with_bootloader.hex
- 0 commands/upload/testdata/build_path_4/some_other_files.txt
- +110 −21 commands/upload/upload.go
- +121 −0 commands/upload/upload_test.go
- +1 −1 go.mod
- +2 −2 go.sum
- +1 −1 rpc/commands/board.pb.go
- +1 −1 rpc/commands/commands.pb.go
- +1 −1 rpc/commands/common.pb.go
- +1 −1 rpc/commands/compile.pb.go
- +1 −1 rpc/commands/core.pb.go
- +1 −1 rpc/commands/lib.pb.go
- +51 −52 rpc/commands/upload.pb.go
- +3 −1 rpc/commands/upload.proto
- +1 −1 rpc/debug/debug.pb.go
- +1 −1 rpc/monitor/monitor.pb.go
- +1 −1 rpc/settings/settings.pb.go
- +23 −1 test/test_upload.py
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Oops, something went wrong.

