mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-21 04:22:30 +08:00
docs: update hrp cmd docs
This commit is contained in:
@@ -57,5 +57,5 @@ func getAndroidDevices() (devices []*gadb.Device, err error) {
|
||||
}
|
||||
|
||||
func init() {
|
||||
androidRootCmd.AddCommand(listAndroidDevicesCmd)
|
||||
CmdAndroidRoot.AddCommand(listAndroidDevicesCmd)
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
var serial string
|
||||
|
||||
var androidRootCmd = &cobra.Command{
|
||||
var CmdAndroidRoot = &cobra.Command{
|
||||
Use: "adb",
|
||||
Short: "simple utils for android device management",
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {},
|
||||
@@ -22,7 +22,3 @@ func getDevice(serial string) (*uixt.AndroidDevice, error) {
|
||||
}
|
||||
return device, nil
|
||||
}
|
||||
|
||||
func Init(rootCmd *cobra.Command) {
|
||||
rootCmd.AddCommand(androidRootCmd)
|
||||
}
|
||||
|
||||
@@ -66,5 +66,5 @@ func init() {
|
||||
installCmd.Flags().BoolVarP(&replace, "replace", "r", false, "replace existing application")
|
||||
installCmd.Flags().BoolVarP(&downgrade, "downgrade", "d", false, "allow version code downgrade (debuggable packages only)")
|
||||
installCmd.Flags().BoolVarP(&grant, "grant", "g", false, "grant all runtime permissions")
|
||||
androidRootCmd.AddCommand(installCmd)
|
||||
CmdAndroidRoot.AddCommand(installCmd)
|
||||
}
|
||||
|
||||
@@ -46,5 +46,5 @@ var screencapAndroidDevicesCmd = &cobra.Command{
|
||||
|
||||
func init() {
|
||||
screencapAndroidDevicesCmd.Flags().StringVarP(&serial, "serial", "s", "", "filter by device's serial")
|
||||
androidRootCmd.AddCommand(screencapAndroidDevicesCmd)
|
||||
CmdAndroidRoot.AddCommand(screencapAndroidDevicesCmd)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user