arduino/arduino-connector

Missing packages API

AlbyIanna opened this issue · 3 comments

The following calls are not available:

  • install
  • update
  • upgrade
  • remove

Actually they already exist. My bad, I was looking at the TODO section in the readme.

Now that I've added the documentation I see that there is a possible issue here:

Result: err.Error(),

if err is nil the err.Error() call will panic.

@AlbyIanna I'm going to slightly change the output from:

	type response struct {
		Result string
		Output string
	}

to

	type response struct {
		Error string `json:"error"`
		Output string `json:"output"`
	}

and set Error to the string "nil" if err is nil.