mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
26 lines
499 B
Go
26 lines
499 B
Go
package ios
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/httprunner/httprunner/v5/pkg/uixt"
|
|
"github.com/httprunner/httprunner/v5/pkg/uixt/option"
|
|
)
|
|
|
|
var iosRootCmd = &cobra.Command{
|
|
Use: "ios",
|
|
Short: "simple utils for ios device management",
|
|
}
|
|
|
|
func getDevice(udid string) (*uixt.IOSDevice, error) {
|
|
device, err := uixt.NewIOSDevice(option.WithUDID(udid))
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return device, nil
|
|
}
|
|
|
|
func Init(rootCmd *cobra.Command) {
|
|
rootCmd.AddCommand(iosRootCmd)
|
|
}
|