mojo-hard-reset requires the name of the image to reset

This commit is contained in:
Tristin Celestin 2010-10-30 16:21:52 -04:00 committed by Sami Samhuri
parent f2c9c31bc4
commit d6fd69c28a

View file

@ -203,10 +203,12 @@ NAME is the name of the scene."
(mojo-cmd "palm-emulator" (list "--list"))) (mojo-cmd "palm-emulator" (list "--list")))
;;* interactive ;;* interactive
(defun mojo-hard-reset () (defun mojo-hard-reset (image)
"Perform a hard reset, clearing all data." "Perform a hard reset, clearing all data."
(interactive) (interactive "sImage name: \n")
(mojo-cmd "palm-emulator" (list "--reset"))) (if (string= "" image)
(error "Run mojo-list-emulator-images to see what images are available")
(mojo-cmd "palm-emulator" (list "--reset" image))))
(defun mojo-browse () (defun mojo-browse ()
"Use `browse-url' to visit your application with Palm Host." "Use `browse-url' to visit your application with Palm Host."