docs: update hrp cmd docs

This commit is contained in:
lilong.129
2025-04-24 22:31:03 +08:00
parent 9473345ec9
commit 03c0d6ee42
47 changed files with 587 additions and 117 deletions

View File

@@ -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)
}

View File

@@ -74,5 +74,5 @@ var listDevicesCmd = &cobra.Command{
var udid string
func init() {
iosRootCmd.AddCommand(listDevicesCmd)
CmdIOSRoot.AddCommand(listDevicesCmd)
}

View File

@@ -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)
}

View File

@@ -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)
}

View File

@@ -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)
}

View File

@@ -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)
}

View File

@@ -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)
}

View File

@@ -36,5 +36,5 @@ var tunnelCmd = &cobra.Command{
}
func init() {
iosRootCmd.AddCommand(tunnelCmd)
CmdIOSRoot.AddCommand(tunnelCmd)
}

View File

@@ -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)
}

View File

@@ -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)
}