Missing packages API
AlbyIanna opened this issue · 3 comments
AlbyIanna commented
The following calls are not available:
- install
- update
- upgrade
- remove
AlbyIanna commented
Actually they already exist. My bad, I was looking at the TODO section in the readme.
cmaglie commented
Now that I've added the documentation I see that there is a possible issue here:
Line 152 in c69c6f3
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.