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