fix(errors): implement filterErr with common adb stderr patterns

- Implement filterErr to detect device-not-found, offline, unauthorized,
  connection-refused, and multiple-device errors from stderr output
- Add ErrDeviceNotFound, ErrDeviceOffline, ErrDeviceUnauthorized,
  ErrConnectionRefused, ErrMoreThanOneDevice sentinel errors
- Remove log.Printf in CaptureSequence (was marked TODO for removal)
- Fix ConnString to use local variable instead of mutating value receiver
- Update go directive to 1.26.2
- Update README: check implemented features, fix intro typo, add
  root/keyevent/getevent to supported functions list
- Expand filterErr tests for all new error patterns
This commit is contained in:
2026-04-08 10:38:56 +00:00
parent 80d01ae3e9
commit 747c4abb7f
7 changed files with 60 additions and 27 deletions

2
go.mod
View File

@@ -1,5 +1,5 @@
module github.com/taigrr/adb
go 1.26.1
go 1.26.2
require github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510