feat: mount ios developer image

This commit is contained in:
debugtalk
2022-10-10 18:09:13 +08:00
parent ab3b2704db
commit ef8f7ec6c4
7 changed files with 108 additions and 15 deletions
+4 -3
View File
@@ -9,8 +9,9 @@ import (
)
var psCmd = &cobra.Command{
Use: "ps",
Short: "show running processes",
Use: "ps",
Short: "show running processes",
PersistentPreRun: func(cmd *cobra.Command, args []string) {},
RunE: func(cmd *cobra.Command, args []string) error {
device, err := getDevice(udid)
if err != nil {
@@ -54,7 +55,7 @@ var psCmd = &cobra.Command{
var isAll bool
func init() {
psCmd.Flags().StringVarP(&udid, "udid", "u", "", "filter by device's udid")
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)
}