feat: mount ios developer image

This commit is contained in:
debugtalk
2022-10-10 17:33:34 +08:00
parent ab3b2704db
commit ef8f7ec6c4
7 changed files with 108 additions and 15 deletions

View File

@@ -7,8 +7,9 @@ import (
)
var rebootCmd = &cobra.Command{
Use: "reboot",
Short: "reboot or shutdown ios device",
Use: "reboot",
Short: "reboot or shutdown ios device",
PersistentPreRun: func(cmd *cobra.Command, args []string) {},
RunE: func(cmd *cobra.Command, args []string) error {
device, err := getDevice(udid)
if err != nil {
@@ -31,7 +32,7 @@ var rebootCmd = &cobra.Command{
var isShutdown bool
func init() {
rebootCmd.Flags().StringVarP(&udid, "udid", "u", "", "filter by device's udid")
rebootCmd.Flags().StringVarP(&udid, "udid", "u", "", "specify device by udid")
rebootCmd.Flags().BoolVarP(&isShutdown, "shutdown", "s", false, "shutdown ios device")
iosRootCmd.AddCommand(rebootCmd)
}