mirror of
https://github.com/taigrr/adb.git
synced 2026-04-02 11:08:41 -07:00
Compare commits
3 Commits
v0.1.0
...
cd/moderni
| Author | SHA1 | Date | |
|---|---|---|---|
| e87a194267 | |||
| 2b1116d920 | |||
| 2a47181ccf |
17
.github/workflows/test.yml
vendored
Normal file
17
.github/workflows/test.yml
vendored
Normal file
@@ -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,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)
|
||||
|
||||
2
go.mod
2
go.mod
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user