Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Test
on:
push:
branches: [master]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: go test -race ./...
- run: go vet ./...
- run: go build ./...

7 changes: 0 additions & 7 deletions examples/injection/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ import (
"github.com/taigrr/adb"
)

var command string

func init() {
// TODO allow for any input to be used as the command
command = "ls"
}

func main() {
ctx := context.TODO()
devs, err := adb.Devices(ctx)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/taigrr/adb

go 1.16
go 1.26.0

require github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
2 changes: 0 additions & 2 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import (

var adb string

const killed = 130

func init() {
path, err := exec.LookPath("adb")
if err != nil {
Expand Down