mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-21 12:33:59 +08:00
docs: update hrp cmd docs
This commit is contained in:
@@ -71,5 +71,5 @@ var appType string
|
||||
func init() {
|
||||
listAppsCmd.Flags().StringVarP(&udid, "udid", "u", "", "specify device by udid")
|
||||
listAppsCmd.Flags().StringVarP(&appType, "type", "t", "user", "filter application type [user|system|internal|all]")
|
||||
iosRootCmd.AddCommand(listAppsCmd)
|
||||
CmdIOSRoot.AddCommand(listAppsCmd)
|
||||
}
|
||||
|
||||
@@ -74,5 +74,5 @@ var listDevicesCmd = &cobra.Command{
|
||||
var udid string
|
||||
|
||||
func init() {
|
||||
iosRootCmd.AddCommand(listDevicesCmd)
|
||||
CmdIOSRoot.AddCommand(listDevicesCmd)
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/httprunner/httprunner/v5/uixt/option"
|
||||
)
|
||||
|
||||
var iosRootCmd = &cobra.Command{
|
||||
var CmdIOSRoot = &cobra.Command{
|
||||
Use: "ios",
|
||||
Short: "simple utils for ios device management",
|
||||
}
|
||||
@@ -19,7 +19,3 @@ func getDevice(udid string) (*uixt.IOSDevice, error) {
|
||||
}
|
||||
return device, nil
|
||||
}
|
||||
|
||||
func Init(rootCmd *cobra.Command) {
|
||||
rootCmd.AddCommand(iosRootCmd)
|
||||
}
|
||||
|
||||
@@ -49,5 +49,5 @@ var installCmd = &cobra.Command{
|
||||
func init() {
|
||||
installCmd.Flags().StringVarP(&udid, "udid", "u", "", "filter by device's serial")
|
||||
|
||||
iosRootCmd.AddCommand(installCmd)
|
||||
CmdIOSRoot.AddCommand(installCmd)
|
||||
}
|
||||
|
||||
@@ -79,5 +79,5 @@ func init() {
|
||||
mountCmd.Flags().BoolVar(&unmountDeveloperDiskImage, "reset", false, "unmount developer disk images")
|
||||
mountCmd.Flags().StringVarP(&developerDiskImageDir, "dir", "d", defaultDeveloperDiskImageDir, "specify developer disk image directory")
|
||||
mountCmd.Flags().StringVarP(&udid, "udid", "u", "", "specify device by udid")
|
||||
iosRootCmd.AddCommand(mountCmd)
|
||||
CmdIOSRoot.AddCommand(mountCmd)
|
||||
}
|
||||
|
||||
@@ -46,5 +46,5 @@ var isAll bool
|
||||
func init() {
|
||||
psCmd.Flags().StringVarP(&udid, "udid", "u", "", "specify device by udid")
|
||||
psCmd.Flags().BoolVarP(&isAll, "all", "a", false, "print all processes including system processes")
|
||||
iosRootCmd.AddCommand(psCmd)
|
||||
CmdIOSRoot.AddCommand(psCmd)
|
||||
}
|
||||
|
||||
@@ -40,5 +40,5 @@ var rebootCmd = &cobra.Command{
|
||||
|
||||
func init() {
|
||||
rebootCmd.Flags().StringVarP(&udid, "udid", "u", "", "specify device by udid")
|
||||
iosRootCmd.AddCommand(rebootCmd)
|
||||
CmdIOSRoot.AddCommand(rebootCmd)
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@ var tunnelCmd = &cobra.Command{
|
||||
}
|
||||
|
||||
func init() {
|
||||
iosRootCmd.AddCommand(tunnelCmd)
|
||||
CmdIOSRoot.AddCommand(tunnelCmd)
|
||||
}
|
||||
|
||||
@@ -56,5 +56,5 @@ func init() {
|
||||
uninstallCmd.Flags().StringVarP(&udid, "udid", "u", "", "filter by device's serial")
|
||||
uninstallCmd.Flags().StringVarP(&bundleId, "bundleId", "b", "", "bundleId to uninstall")
|
||||
|
||||
iosRootCmd.AddCommand(uninstallCmd)
|
||||
CmdIOSRoot.AddCommand(uninstallCmd)
|
||||
}
|
||||
|
||||
@@ -52,5 +52,5 @@ func init() {
|
||||
xctestCmd.Flags().StringVarP(&bundleID, "bundleID", "b", "com.gtf.wda.runner.xctrunner", "specify ios bundleID")
|
||||
xctestCmd.Flags().StringVarP(&testRunnerBundleID, "testRunnerBundleID", "t", "com.gtf.wda.runner.xctrunner", "specify ios testRunnerBundleID")
|
||||
xctestCmd.Flags().StringVarP(&xctestConfig, "xctestConfig", "x", "GtfWdaRunner.xctest", "specify ios xctestConfig")
|
||||
iosRootCmd.AddCommand(xctestCmd)
|
||||
CmdIOSRoot.AddCommand(xctestCmd)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user