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
Allows users to choose an output format between text and json.
Writes to stdout (through fmt.Print..) have been replaced into writes to a logger. If the verbose flag -v is passed to the command line, then the logger will be enabled. Otherwise, all the logs messages will be discarded.
These changes allow users to save results in files. For example, with the following command, a device is provisioned and its properties are written into a json file:
./iot-cloud-cli device create --format json --name <deviceName> > deviceName.json
* Replace fmt print into log info
* Distinguish board from device
* Improve device format output
* Fix log infof
* Improve logs of arduino-cli
This commit has two effects:
- arduino-cli init command logs are masked out.
- arduino-cli upload logs are logged only if logrus was already enabled.
* Fix log msg
* Update go mod
* Improve thing output format
* Refactor thing output format
* Fix device iot client
* Improve errors: use stderr and error codes
* cli package: don't return error
* Remove unreachable code
* Improve log initialization
* Remove duplication of info messages
* Add arduino-cli source to upload logs
* Return consistent output
0 commit comments