mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
feat: add log
This commit is contained in:
@@ -49,11 +49,11 @@ var listAppsCmd = &cobra.Command{
|
||||
applicationType = gidevice.ApplicationTypeAny
|
||||
}
|
||||
|
||||
result, errList := device.InstallationProxyBrowse(
|
||||
result, err := device.InstallationProxyBrowse(
|
||||
gidevice.WithApplicationType(applicationType),
|
||||
gidevice.WithReturnAttributes("CFBundleVersion", "CFBundleDisplayName", "CFBundleIdentifier"))
|
||||
if errList != nil {
|
||||
return fmt.Errorf("get app list failed")
|
||||
if err != nil {
|
||||
return fmt.Errorf("get app list failed %v", err)
|
||||
}
|
||||
|
||||
for _, app := range result {
|
||||
|
||||
@@ -390,6 +390,7 @@ type ExportPoint struct {
|
||||
|
||||
func ConvertPoints(lines []string) (eps []ExportPoint) {
|
||||
log.Info().Msg("ConvertPoints")
|
||||
log.Info().Msg(strings.Join(lines, "\n"))
|
||||
for _, line := range lines {
|
||||
if strings.Contains(line, "ext") {
|
||||
idx := strings.Index(line, "{")
|
||||
|
||||
Reference in New Issue
Block a user