You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
uploadCommand.Flags().StringVarP(&port, "port", "p", "", "Upload port, e.g.: COM10 or /dev/ttyACM0")
55
57
uploadCommand.Flags().StringVarP(&importDir, "input-dir", "", "", "Directory containing binaries to upload.")
58
+
uploadCommand.Flags().StringVarP(&importFile, "input-file", "i", "", "Binary file to upload.")
56
59
uploadCommand.Flags().BoolVarP(&verify, "verify", "t", false, "Verify uploaded binary after the upload.")
57
60
uploadCommand.Flags().BoolVarP(&verbose, "verbose", "v", false, "Optional, turns on verbose mode.")
58
61
uploadCommand.Flags().StringVarP(&programmer, "programmer", "P", "", "Optional, use the specified programmer to upload or 'list' to list supported programmers.")
0 commit comments