Skip to content

fix: Some commands responses are going to stderr #575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ The commands work as following:
} else {
b, err := marshalJSON(services)
exitIfError("failed json conversion", err)
println(string(b))
fmt.Println(string(b))
}
return
}
Expand Down Expand Up @@ -491,7 +491,7 @@ The commands work as following:
if b {
ip, err := pcap.FindIp(device)
exitIfError("failed", err)
println(convertToJSONString(ip))
fmt.Println(convertToJSONString(ip))
return
}

Expand Down Expand Up @@ -1424,7 +1424,7 @@ func instrumentsCommand(device ios.DeviceEntry, arguments docopt.Opts) bool {
return
}
s, _ := json.Marshal(notification)
println(string(s))
fmt.Println(string(s))
}
}()
c := make(chan os.Signal, 1)
Expand Down Expand Up @@ -1470,7 +1470,7 @@ func crashCommand(device ios.DeviceEntry, arguments docopt.Opts) bool {
}
files, err := crashreport.ListReports(device, pattern)
exitIfError("failed listing crashreports", err)
println(
fmt.Println(
convertToJSONString(
map[string]interface{}{"files": files, "length": len(files)},
),
Expand Down Expand Up @@ -1507,7 +1507,7 @@ func deviceState(device ios.DeviceEntry, list bool, enable bool, profileTypeId s
} else {
b, err := marshalJSON(profileTypes)
exitIfError("failed json conversion", err)
println(string(b))
fmt.Println(string(b))
}
return
}
Expand Down