Skip to content

Commit

Permalink
update_flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Jul 25, 2022
1 parent 6ab9a19 commit 7fde5d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions cmd/afc/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ func initPullCmd() {
afcRootCMD.AddCommand(afcPullCmd)
afcPullCmd.Flags().StringVarP(&udid, "udid", "u", "", "device's serialNumber ( default first device )")
afcPullCmd.Flags().StringVarP(&bundleId, "bundleId", "b", "", "app bundleId")
afcPullCmd.Flags().StringVarP(&pullDevicePath, "devicePath", "d", "", "pull file or directory device path")
afcPullCmd.Flags().StringVarP(&pullSaveLocalPath, "localPath", "l", "", "pull save file or directory to local path")
afcPullCmd.MarkFlagRequired("devicePath")
afcPullCmd.MarkFlagRequired("localPath")
afcPullCmd.Flags().StringVarP(&pullDevicePath, "device-path", "d", "", "pull file or directory device path")
afcPullCmd.Flags().StringVarP(&pullSaveLocalPath, "local-path", "l", "", "pull save file or directory to local path")
afcPullCmd.MarkFlagRequired("device-path")
afcPullCmd.MarkFlagRequired("local-path")
}

func pullOperate(afc giDevice.Afc, devicePath string, localPath string) {
Expand Down
8 changes: 4 additions & 4 deletions cmd/afc/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ func initPush() {
afcRootCMD.AddCommand(afcPushCmd)
afcPushCmd.Flags().StringVarP(&udid, "udid", "u", "", "device's serialNumber ( default first device )")
afcPushCmd.Flags().StringVarP(&bundleId, "bundleId", "b", "", "app bundleId")
afcPushCmd.Flags().StringVarP(&pushLocalPath, "localPath", "l", "", "push file or directory local path")
afcPushCmd.Flags().StringVarP(&pushSaveDevicePath, "devicePath", "d", "", "push save file or directory to device path")
afcPushCmd.MarkFlagRequired("localPath")
afcPushCmd.MarkFlagRequired("devicePath")
afcPushCmd.Flags().StringVarP(&pushLocalPath, "local-path", "l", "", "push file or directory local path")
afcPushCmd.Flags().StringVarP(&pushSaveDevicePath, "device-path", "d", "", "push save file or directory to device path")
afcPushCmd.MarkFlagRequired("local-path")
afcPushCmd.MarkFlagRequired("device-path")
}

func pushFile(afc giDevice.Afc, localPath string, devicePath string) {
Expand Down

0 comments on commit 7fde5d7

Please sign in to comment.